Author: Antonio Cuni <[email protected]>
Branch: py3k
Changeset: r51408:46e3b0574cc8
Date: 2012-01-17 17:28 +0100
http://bitbucket.org/pypy/pypy/changeset/46e3b0574cc8/
Log: bah, if we inherit we run all the test twice
diff --git a/pypy/interpreter/pyparser/test/test_pyparse.py
b/pypy/interpreter/pyparser/test/test_pyparse.py
--- a/pypy/interpreter/pyparser/test/test_pyparse.py
+++ b/pypy/interpreter/pyparser/test/test_pyparse.py
@@ -128,11 +128,16 @@
self.parse('(a, *rest, b) = 1, 2, 3, 4, 5')
-class TestPythonParserWithSpace(TestPythonParserWithoutSpace):
+class TestPythonParserWithSpace:
def setup_class(self):
self.parser = pyparse.PythonParser(self.space)
+ def parse(self, source, mode="exec", info=None):
+ if info is None:
+ info = pyparse.CompileInfo("<test>", mode)
+ return self.parser.parse_source(source, info)
+
def test_encoding(self):
info = pyparse.CompileInfo("<test>", "exec")
tree = self.parse("""# coding: latin-1
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit