Fix test for determined behaviour with IronPython

This commit is contained in:
Elizaveta Shashkova
2016-02-04 18:52:05 +03:00
parent b3c4599b6b
commit fba7a4ace1
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -9,11 +9,12 @@ def bar(y):
z = 100 + y
print("Z=%d"%z)
t = None
def foo(x):
global t
y = x + 1
print("Y=%d"%y)
global t
t = threading.Thread(target=bar, args=(y,))
t.start()