From 8fab3dd42fa0c9fbce378089b60935046bf9a4d1 Mon Sep 17 00:00:00 2001 From: Ran Benita Date: Wed, 8 Apr 2020 22:35:36 +0300 Subject: [PATCH] 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. --- testing/test_assertrewrite.py | 10 ---------- 1 file changed, 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())