Commits

Armin Rigo committed f40c2a8

Fix the test.

Comments (0)

Files changed (1)

pypy/rlib/parsing/test/test_pythonparse.py

         t = self.ToAST.transform(t)
 
     def test_parse_this(self):
-        s = py.path.local(__file__).read()
+        filename = __file__
+        if filename.lower().endswith('.pyc'):
+            filename = filename[:-1]
+        s = py.path.local(filename).read()
         t = self.parse(s)
         t = self.ToAST.transform(t)