diff options
author | Ran Benita <ran@unusedvar.com> | 2020-04-08 22:35:36 +0300 |
---|---|---|
committer | Ran Benita <ran@unusedvar.com> | 2020-04-09 10:47:45 +0300 |
commit | 8fab3dd42fa0c9fbce378089b60935046bf9a4d1 (patch) | |
tree | 5db9b6851998ec9383ce98dc08d4db11afe53461 /testing/test_assertrewrite.py | |
parent | 413ca8a4d097ed1a98b2d1012ca7df17aa6837b1 (diff) | |
download | pytest-8fab3dd42fa0c9fbce378089b60935046bf9a4d1.tar.gz |
Remove broken _reprcompare disabling fixture in test_assertrewrite.py
The `_pytest._code._reprcompare` that was referred to previously doesn't
exist -- it was moved to other places but wasn't updated. This regressed
in f423ce9c016aff0d84c4a68f6d972833d032181e. Now we don't want it
anymore, so keep the status quo by explicitly removing them.
Diffstat (limited to 'testing/test_assertrewrite.py')
-rw-r--r-- | testing/test_assertrewrite.py | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/testing/test_assertrewrite.py b/testing/test_assertrewrite.py index 04e0c6f9e..8cf492966 100644 --- a/testing/test_assertrewrite.py +++ b/testing/test_assertrewrite.py @@ -25,16 +25,6 @@ from _pytest.config import ExitCode from _pytest.pathlib import Path -def setup_module(mod): - mod._old_reprcompare = util._reprcompare - _pytest._code._reprcompare = None - - -def teardown_module(mod): - util._reprcompare = mod._old_reprcompare - del mod._old_reprcompare - - def rewrite(src): tree = ast.parse(src) rewrite_asserts(tree, src.encode()) |