Index: test/preparser/testcfg.py |
diff --git a/test/preparser/testcfg.py b/test/preparser/testcfg.py |
index 82b011df19527060ea7cca2ab02c0bdd911ab6e3..ddd311c20162e4822a15d8d6d4e256139c2fbd08 100644 |
--- a/test/preparser/testcfg.py |
+++ b/test/preparser/testcfg.py |
@@ -63,12 +63,13 @@ class PreparserTestSuite(testsuite.TestSuite): |
def _ParsePythonTestTemplates(self, result, filename): |
pathname = os.path.join(self.root, filename + ".pyt") |
- def Test(name, source, expectation): |
+ def Test(name, source, expectation, extra_flags=[]): |
source = source.replace("\n", " ") |
testname = os.path.join(filename, name) |
flags = ["-e", source] |
if expectation: |
flags += ["--throws"] |
+ flags += extra_flags |
test = testcase.TestCase(self, testname, flags=flags) |
result.append(test) |
def Template(name, source): |