diff --git a/test/preparser/testcfg.py b/test/preparser/testcfg.py index e709e2e540..8576a4c5ba 100644 --- a/test/preparser/testcfg.py +++ b/test/preparser/testcfg.py @@ -68,7 +68,7 @@ class TestSuite(testsuite.TestSuite): return MkTest with open(pathname) as f: text = f.read() - exec text in {"Test": Test, "Template": Template} + exec(text, {"Test": Test, "Template": Template}) def ListTests(self): result = []