Skip to content

Commit

Permalink
Merge pull request pytest-dev#8054 from hroncok/4.6-py3.10
Browse files Browse the repository at this point in the history
[4.6] testing: python 3.10 fix
  • Loading branch information
nicoddemus authored Nov 25, 2020
2 parents be26da8 + 90aaeeb commit da7ca9e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion testing/test_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -336,8 +336,10 @@ def test_method(self):
assert reps[2].failed
assert reps[2].when == "teardown"
assert reps[2].longrepr.reprcrash.message in (
# python3 error
# python3 < 3.10 error
"TypeError: teardown_method() missing 2 required positional arguments: 'y' and 'z'",
# python3 >= 3.10 error
"TypeError: TestClass.teardown_method() missing 2 required positional arguments: 'y' and 'z'",
# python2 error
"TypeError: teardown_method() takes exactly 4 arguments (2 given)",
)
Expand Down

0 comments on commit da7ca9e

Please sign in to comment.