We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 65e6e39 commit d9ac2efCopy full SHA for d9ac2ef
testing/test_runner.py
@@ -336,10 +336,9 @@ def test_method(self):
336
assert reps[2].failed
337
assert reps[2].when == "teardown"
338
assert reps[2].longrepr.reprcrash.message in (
339
- # python3 error
340
"TypeError: teardown_method() missing 2 required positional arguments: 'y' and 'z'",
341
- # python2 error
342
- "TypeError: teardown_method() takes exactly 4 arguments (2 given)",
+ # Python >= 3.10
+ "TypeError: TestClass.teardown_method() missing 2 required positional arguments: 'y' and 'z'",
343
)
344
345
def test_failure_in_setup_function_ignores_custom_repr(self, testdir) -> None:
0 commit comments