filter all code over `pyupgrade --py38-plus`

Signed-off-by: Tomasz Kłoczko <kloczek@github.com>
This commit is contained in:
Tomasz Kłoczko 2024-06-04 18:38:13 +00:00
parent 0070151c63
commit 6e5aaef404
1 changed files with 2 additions and 2 deletions

View File

@ -384,7 +384,7 @@ def test_testcase_adderrorandfailure_defers(pytester: Pytester, type: str) -> No
@pytest.mark.parametrize("type", ["Error", "Failure"])
def test_testcase_custom_exception_info(pytester: Pytester, type: str) -> None:
pytester.makepyfile(
"""
f"""
from typing import Generic, TypeVar
from unittest import TestCase
import pytest, _pytest._code
@ -413,7 +413,7 @@ def test_testcase_custom_exception_info(pytester: Pytester, type: str) -> None:
def test_hello(self):
pass
""".format(**locals())
"""
)
result = pytester.runpytest()
result.stdout.fnmatch_lines(