Fixed broken test cases.

This commit is contained in:
Eric Traut 2019-09-18 00:02:57 -07:00
parent a7ad901882
commit 8b7ba5afcf
2 changed files with 1 additions and 5 deletions

View File

@ -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

View File

@ -589,5 +589,5 @@ test('RevealedType1', () => {
test('NameBindings1', () => {
const analysisResults = TestUtils.typeAnalyzeSampleFiles(['nameBindings1.py']);
validateResults(analysisResults, 6);
validateResults(analysisResults, 4);
});