Merge pull request #8054 from hroncok/4.6-py3.10

[4.6] testing: python 3.10 fix
This commit is contained in:
Bruno Oliveira 2020-11-25 08:50:54 -03:00 committed by GitHub
commit da7ca9e732
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -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)",
)