Skip to content

Commit b8cb2df

Browse files
committed
Uncomment test_nonlocal
1 parent dadf430 commit b8cb2df

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

Lib/test/test_grammar.py

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1161,14 +1161,13 @@ def test_global(self):
11611161
global a, b
11621162
global one, two, three, four, five, six, seven, eight, nine, ten
11631163

1164-
# TODO: RUSTPYTHON
1165-
# def test_nonlocal(self):
1166-
# # 'nonlocal' NAME (',' NAME)*
1167-
# x = 0
1168-
# y = 0
1169-
# def f():
1170-
# nonlocal x
1171-
# nonlocal x, y
1164+
def test_nonlocal(self):
1165+
# 'nonlocal' NAME (',' NAME)*
1166+
x = 0
1167+
y = 0
1168+
def f():
1169+
nonlocal x
1170+
nonlocal x, y
11721171

11731172
def test_assert(self):
11741173
# assertTruestmt: 'assert' test [',' test]

0 commit comments

Comments
 (0)