Skip to content

Commit

Permalink
testing: python 3.10 fix
Browse files Browse the repository at this point in the history
Co-Authored-By: Miro Hrončok <miro@hroncok.cz>
  • Loading branch information
bluetech and hroncok committed Nov 20, 2020
1 parent be26da8 commit 90aaeeb
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 90aaeeb

Please sign in to comment.