Enable testing with Python 3.11 (#9511)

This commit is contained in:
Bruno Oliveira
2022-02-11 12:20:42 -03:00
committed by GitHub
parent 6828ec2f9b
commit b79eff065e
7 changed files with 47 additions and 9 deletions

View File

@@ -743,8 +743,8 @@ def test_run_result_repr() -> None:
# known exit code
r = pytester_mod.RunResult(1, outlines, errlines, duration=0.5)
assert (
repr(r) == "<RunResult ret=ExitCode.TESTS_FAILED len(stdout.lines)=3"
assert repr(r) == (
f"<RunResult ret={str(pytest.ExitCode.TESTS_FAILED)} len(stdout.lines)=3"
" len(stderr.lines)=4 duration=0.50s>"
)