diff options
author | Anthony Sottile <asottile@umich.edu> | 2020-10-02 13:02:22 -0700 |
---|---|---|
committer | Anthony Sottile <asottile@umich.edu> | 2020-10-02 19:50:10 -0700 |
commit | bfadd4060e83a7c8dc6233643ad9fa4af7368806 (patch) | |
tree | 10b6915916b780d53eacec59193028918cea0598 /testing/test_config.py | |
parent | a23666d55494f6960dfc8845757c391b5aedec0b (diff) | |
download | pytest-bfadd4060e83a7c8dc6233643ad9fa4af7368806.tar.gz |
py36+: from typing import Type: no longer need guard
Diffstat (limited to 'testing/test_config.py')
-rw-r--r-- | testing/test_config.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/testing/test_config.py b/testing/test_config.py index 02db737d6..02696fff2 100644 --- a/testing/test_config.py +++ b/testing/test_config.py @@ -6,7 +6,7 @@ from typing import Dict from typing import List from typing import Sequence from typing import Tuple -from typing import TYPE_CHECKING +from typing import Type import attr import py.path @@ -29,9 +29,6 @@ from _pytest.monkeypatch import MonkeyPatch from _pytest.pathlib import Path from _pytest.pytester import Testdir -if TYPE_CHECKING: - from typing import Type - class TestParseIni: @pytest.mark.parametrize( @@ -1936,7 +1933,7 @@ def test_strtobool(): ], ) def test_parse_warning_filter( - arg: str, escape: bool, expected: "Tuple[str, str, Type[Warning], str, int]" + arg: str, escape: bool, expected: Tuple[str, str, Type[Warning], str, int] ) -> None: assert parse_warning_filter(arg, escape=escape) == expected |