[py-svn] r37003 - py/dist/py/code/testing
cfbolz at codespeak.net
cfbolz at codespeak.net
Fri Jan 19 16:25:00 CET 2007
Author: cfbolz
Date: Fri Jan 19 16:24:58 2007
New Revision: 37003
Modified:
py/dist/py/code/testing/test_source.py
Log:
a skipped test showing a fundamental problem with the heuristic in
getstatementrange. Should be fixed, but probably only after the release.
Modified: py/dist/py/code/testing/test_source.py
==============================================================================
--- py/dist/py/code/testing/test_source.py (original)
+++ py/dist/py/code/testing/test_source.py Fri Jan 19 16:24:58 2007
@@ -173,6 +173,22 @@
assert len(source) == 6
assert source.getstatementrange(2) == (1, 4)
+ def test_getstatementrange_bug2(self):
+ py.test.skip("fix me")
+ source = Source("""\
+ assert (
+ 33
+ ==
+ [
+ X(3,
+ b=1, c=2
+ ),
+ ]
+ )
+ """)
+ assert len(source) == 9
+ assert source.getstatementrange(5) == (0, 9)
+
def test_compile_and_getsource(self):
co = self.source.compile()
exec co
More information about the py-svn
mailing list