Skip to content

PytestUnknownMarkWarning when used with __getattr__ and pytest.mark #3362

Answered by willmcgugan
sylvorg asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@sylvorg
Comment options

Answer selected by sylvorg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants