PytestUnknownMarkWarning
when used with __getattr__
and pytest.mark
#3362
-
Hello! As in the (poorly worded) title; when I attempt to use tests/test_bundle.py: 20 warnings
../rich/pretty.py:631: PytestUnknownMarkWarning: Unknown pytest.mark.awehoi234_wdfjwljet234_234wdfoijsdfmmnxpi492 - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html
fake_attributes = hasattr( Problem is, since there's no traceback, I have no idea how to even begin to debug this, as I disabled every function where Thank you kindly for the help! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
That long string of gibberish is a part of a check to see if an object is customizing I can't say for certain, but I would guess that you are passing in a mock which is raising a pytest exception. Why that exception is translated in to a |
Beta Was this translation helpful? Give feedback.
That long string of gibberish is a part of a check to see if an object is customizing
__getattr__
, which tends to break any kind of inspection.I can't say for certain, but I would guess that you are passing in a mock which is raising a pytest exception. Why that exception is translated in to a
PytestUnknownMarkWarning
I couldn't say.