Lines Matching refs:filename
29 def SingleFileTest(self, filename):
31 py_compile.compile(filename, doraise=True)
33 self.fail('syntax error: %s, Error is %s' % (filename, str(e)))
39 for filename in files:
40 if filename.lower().endswith('.py'):
42 os.path.join(root, filename)
46 def MakeTestName(filename):
47 assert filename.lower().endswith('.py')
48 name = filename[:-3]
53 def MakeNewTest(filename):
54 test = MakeTestName(filename)
55 newmethod = lambda self: self.SingleFileTest(filename)
62 for filename in GetAllPythonSourceFiles():
63 MakeNewTest(filename)