File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -1039,7 +1039,7 @@ def test_futureImportStar(self):
1039
1039
from __future__ import *
1040
1040
''' , m .FutureFeatureNotDefined )
1041
1041
1042
- def test_ignoresTypingImports (self ):
1042
+ def test_ignores_typing_imports (self ):
1043
1043
"""Ignores imports within 'if TYPE_CHECKING' checking normal code."""
1044
1044
self .flakes ('''
1045
1045
from typing import TYPE_CHECKING
@@ -1048,7 +1048,7 @@ def test_ignoresTypingImports(self):
1048
1048
b()
1049
1049
''' , m .UndefinedName )
1050
1050
1051
- def test_ignoresTypingClassDefinition (self ):
1051
+ def test_ignores_typing_class_definition (self ):
1052
1052
"""Ignores definitions within 'if TYPE_CHECKING' checking normal code."""
1053
1053
self .flakes ('''
1054
1054
from typing import TYPE_CHECKING
@@ -1059,7 +1059,7 @@ class T:
1059
1059
''' , m .UndefinedName )
1060
1060
1061
1061
@skipIf (version_info < (3 ,), 'has type annotations' )
1062
- def test_usesTypingImportsForAnnotations (self ):
1062
+ def test_uses_typing_imports_for_annotations (self ):
1063
1063
"""Uses imports within 'if TYPE_CHECKING' checking annotations."""
1064
1064
self .flakes ('''
1065
1065
from typing import TYPE_CHECKING
@@ -1069,7 +1069,6 @@ def f() -> "b":
1069
1069
pass
1070
1070
''' )
1071
1071
1072
-
1073
1072
class TestSpecialAll (TestCase ):
1074
1073
"""
1075
1074
Tests for suppression of unused import warnings by C{__all__}.
You can’t perform that action at this time.
0 commit comments