From 16a1ab441887fbc47d515e9858d5dac17eea350c Mon Sep 17 00:00:00 2001 From: Robert Jordens Date: Mon, 18 Jan 2016 16:55:10 -0700 Subject: [PATCH] test/harness: exec in globals --- artiq/test/harness.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/artiq/test/harness.py b/artiq/test/harness.py index cf3a0fd10..e3bc15fcc 100644 --- a/artiq/test/harness.py +++ b/artiq/test/harness.py @@ -29,7 +29,7 @@ def main(): sys.argv[1:] = args.args[1:] with open(args.args[0]) as f: code = compile(f.read(), args.args[0], 'exec') - exec(code) + exec(code, globals()) if __name__ == "__main__": main()