-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pytest_assertrepr_compare not being used? #1784
Comments
This looks like it's using plain assertion instead of re-write at first glance. So the hook probably doesn't come to the question. I suspect this would have been done by reinterpret before but that's now gone... |
Hmm that's weird, I have the same effect even if I explicitly pass |
at first glance it seems the rewritten import of conftest triggers a non-rewritten import of the test module before attempting a rewritten import of the test module |
Good point. Does it work if test_foocompare is imported locally inside the hook function? (not in front of a computer to test this myself) |
PR opened at #1787 |
Also now match modules which start with any of the names registered using register_assert_rewrite as discussed in pytest-dev#1787 Fix pytest-dev#1784
Also now match modules which start with any of the names registered using register_assert_rewrite as discussed in pytest-dev#1787 Fix pytest-dev#1784
PR merged, so I'm closing this. I guess it wasn't auto-closed because it was merged to |
Yep! Thanks. |
Running regendoc in #1780, @The-Compiler noticed that an example from the docs regarding
pytest_assertrepr_compare
was not working as it should:The text was updated successfully, but these errors were encountered: