Skip to content

Commit

Permalink
testing: python 3.10 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
bluetech committed Oct 24, 2020
1 parent 65e6e39 commit d9ac2ef
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions testing/test_runner.py
Expand Up @@ -336,10 +336,9 @@ def test_method(self):
assert reps[2].failed
assert reps[2].when == "teardown"
assert reps[2].longrepr.reprcrash.message in (
# python3 error
"TypeError: teardown_method() missing 2 required positional arguments: 'y' and 'z'",
# python2 error
"TypeError: teardown_method() takes exactly 4 arguments (2 given)",
# Python >= 3.10
"TypeError: TestClass.teardown_method() missing 2 required positional arguments: 'y' and 'z'",
)

def test_failure_in_setup_function_ignores_custom_repr(self, testdir) -> None:
Expand Down

0 comments on commit d9ac2ef

Please sign in to comment.