i suffered a little bit today because the pytest s...
# general
g
i suffered a little bit today because the pytest subsystem doesn’t support the filterwarnings ini option. (this was only partially because of pants-- problem was that filerwarnings is more powerful than and different from
-W
, but i had to use
-W
via pytest
args
in pants). is there any reason not to support all the built-in ini options in pants? what about supporting just
filterwarnings
for now?
1
c
doesn’t pants pick up if you have a
pytest.ini
file? Or otherwise a pytest config section in a pyproject.toml file. Pants have this in theirs for instance:
Copy code
[tool.pytest.ini_options]
asyncio_mode = "auto"
markers = ["platform_specific_behavior"]
g
oh, yes, i think i new this at some point but forgot 🤦‍♂️ . it wouldn’t be good to duplicate all the configuration options in the pants.toml: https://www.pantsbuild.org/docs/reference-pytest#config_discovery
c
g
thank you for pointing this out
c
you’re welcome 🙂