diff --git a/changelog/1263.trivial.rst b/changelog/1263.trivial.rst new file mode 100644 index 00000000..e560586a --- /dev/null +++ b/changelog/1263.trivial.rst @@ -0,0 +1 @@ +Remove unused `py` imports diff --git a/testing/acceptance_test.py b/testing/acceptance_test.py index 42d5479d..1b44985d 100644 --- a/testing/acceptance_test.py +++ b/testing/acceptance_test.py @@ -785,7 +785,7 @@ class TestWarnings: def test_warnings(self, pytester: pytest.Pytester, n: str) -> None: pytester.makepyfile( """ - import warnings, py, pytest + import warnings, pytest @pytest.mark.filterwarnings('ignore:config.warn has been deprecated') def test_func(request): @@ -834,7 +834,7 @@ def test_custom_subclass(self, pytester: pytest.Pytester, n: str) -> None: """ pytester.makepyfile( """ - import warnings, py, pytest + import warnings, pytest class MyWarning(UserWarning):