mirror of
https://github.com/microsoft/pyright.git
synced 2024-09-11 16:06:39 +03:00
Fixed broken test cases.
This commit is contained in:
parent
a7ad901882
commit
8b7ba5afcf
@ -14,8 +14,6 @@ def func1():
|
||||
global a
|
||||
|
||||
def func2():
|
||||
# This should generate an error because c doesn't exist
|
||||
# in the global scope.
|
||||
global c
|
||||
|
||||
def func3():
|
||||
@ -36,8 +34,6 @@ def func3():
|
||||
# locally before its name binding is declared.
|
||||
nonlocal h
|
||||
|
||||
# This should generate an error because e is not available
|
||||
# in the global scope.
|
||||
global e
|
||||
|
||||
# This should generate an error because f is not available
|
||||
|
@ -589,5 +589,5 @@ test('RevealedType1', () => {
|
||||
test('NameBindings1', () => {
|
||||
const analysisResults = TestUtils.typeAnalyzeSampleFiles(['nameBindings1.py']);
|
||||
|
||||
validateResults(analysisResults, 6);
|
||||
validateResults(analysisResults, 4);
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user