mirror of https://github.com/pytest-dev/pytest.git
testing: python 3.10 fix
Co-Authored-By: Miro Hrončok <miro@hroncok.cz>
This commit is contained in:
parent
be26da84f4
commit
90aaeebc8e
|
@ -336,8 +336,10 @@ class BaseFunctionalTests(object):
|
|||
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)",
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue