blueloveTH 1 год назад
Родитель
Сommit
bbf4d8efc6
1 измененных файлов с 1 добавлено и 2 удалено
  1. 1 2
      tests/66_eval.py

+ 1 - 2
tests/66_eval.py

@@ -68,10 +68,9 @@ except NameError:
 
 # https://github.com/pocketpy/pocketpy/issues/339
 res = []
-
 code = '\nres.append(x)\ndef f():\n  res.append(x)\nf()\n'
 x = 33
-exec(code, {'x': 42})
+exec(code, {'x': 42, 'res': res})
 assert res == [42, 42]
 assert x == 33