Skip to content

Commit

Permalink
Test with crasher repro for #2535
Browse files Browse the repository at this point in the history
  • Loading branch information
Guido van Rossum committed Dec 11, 2016
1 parent e9b6855 commit ead98b3
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test-data/unit/check-incremental.test
Original file line number Diff line number Diff line change
Expand Up @@ -1640,3 +1640,15 @@ follow_imports = skip
main:3: error: Revealed type is 'builtins.int'
[out2]
main:3: error: Revealed type is 'Any'

[case testIncrementalNamedTupleInMethod]
from ntcrash import nope
[file ntcrash.py]
from typing import NamedTuple
class C:
def f(self) -> None:
A = NamedTuple('A', [('x', int), ('y', int)])
[out1]
main:1: error: Module 'ntcrash' has no attribute 'nope'
[out2]
main:1: error: Module 'ntcrash' has no attribute 'nope'

0 comments on commit ead98b3

Please sign in to comment.