Skip to content

Commit 0330038

Browse files
committed
Update test name, remove comments
1 parent 191918e commit 0330038

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

test-data/unit/pythoneval.test

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1459,20 +1459,17 @@ _testNoCrashOnGenericUnionUnpacking.py:11: error: Revealed type is 'Union[builti
14591459
_testNoCrashOnGenericUnionUnpacking.py:15: error: Revealed type is 'Union[builtins.int*, builtins.str*]'
14601460
_testNoCrashOnGenericUnionUnpacking.py:16: error: Revealed type is 'Union[builtins.int*, builtins.str*]'
14611461

1462-
[case testEnumIteration]
1462+
[case testEnumIterationAndPreciseElementType]
14631463
# Regression test for #2305
1464-
# Tests that:
1465-
# - Mypy allows iteration over enum classes in comprehensions and for-loops
1466-
# - The inferred element type in such iteration contexts is the enum type
14671464
from enum import Enum
14681465
class E(Enum):
14691466
A = 'a'
14701467
(reveal_type(e) for e in E)
14711468
for e in E:
14721469
reveal_type(e)
14731470
[out]
1474-
_testEnumIteration.py:8: error: Revealed type is '_testEnumIteration.E*'
1475-
_testEnumIteration.py:10: error: Revealed type is '_testEnumIteration.E*'
1471+
_testEnumIterationAndPreciseElementType.py:5: error: Revealed type is '_testEnumIterationAndPreciseElementType.E*'
1472+
_testEnumIterationAndPreciseElementType.py:7: error: Revealed type is '_testEnumIterationAndPreciseElementType.E*'
14761473

14771474
[case testEnumIterable]
14781475
from enum import Enum

0 commit comments

Comments
 (0)