rhythmic-morning-87313
05/03/2022, 8:43 AM./pants test
, pyproject.toml
with tool.pytest
section seems not to be applied. Adding explicit dependency from python_tests
target to resource(name="pyproject", source="pyproject.toml")
as //:pyproject
makes the pants engine to crash:
08:40:29.91 [ERROR] panic at 'called `Result::unwrap()` on an `Err` value: PyErr { type: <class 'TypeError'>, value: TypeError("format_exception() got an unexpected keyword argument 'etype'"), traceback: Some(<traceback object at 0xffff7fa3c2c0>) }', src/python.rs:432
08:40:29.91 [ERROR] Please set RUST_BACKTRACE=1, re-run, and then file a bug at <https://github.com/pantsbuild/pants/issues>.
08:40:29.92 [INFO] Filesystem changed during run: retrying `Test` in 500ms...
How do I let my tests recognize pyproject.toml
in the repository root? (It's not used for distribution builds but only to configure tools)bitter-ability-32190
05/03/2022, 11:29 AMbitter-ability-32190
05/03/2022, 11:30 AMtool.pytest.ini_options
. try that?rhythmic-morning-87313
05/03/2022, 11:34 AMrhythmic-morning-87313
05/03/2022, 11:34 AMrhythmic-morning-87313
05/03/2022, 11:34 AMrhythmic-morning-87313
05/03/2022, 2:02 PMrhythmic-morning-87313
05/03/2022, 2:02 PMrhythmic-morning-87313
05/03/2022, 3:42 PM