[pypy-svn] r45343 - pypy/dist/pypy/interpreter/pyparser/test

cfbolz at codespeak.net cfbolz at codespeak.net
Thu Jul 26 14:11:38 CEST 2007


Author: cfbolz
Date: Thu Jul 26 14:11:36 2007
New Revision: 45343

Modified:
   pypy/dist/pypy/interpreter/pyparser/test/test_futureautomaton.py
Log:
failing test about escapes


Modified: pypy/dist/pypy/interpreter/pyparser/test/test_futureautomaton.py
==============================================================================
--- pypy/dist/pypy/interpreter/pyparser/test/test_futureautomaton.py	(original)
+++ pypy/dist/pypy/interpreter/pyparser/test/test_futureautomaton.py	Thu Jul 26 14:11:36 2007
@@ -1,3 +1,4 @@
+import py
 import pypy.interpreter.pyparser.future as future
 from pypy.interpreter.astcompiler.consts import CO_GENERATOR_ALLOWED, \
     CO_FUTURE_DIVISION, CO_FUTURE_WITH_STATEMENT
@@ -28,6 +29,17 @@
     f = run(s)
     assert f.pos == len(s)
 
+def test_escapedquote_in_tripledocstring():
+    py.test.skip("wrong handling of backslash escapes in triple quoted strings")
+    s = '''""" This is a
+docstring with line
+breaks in it. \"""It even has an escaped quote!"""
+'''
+    f = run(s)
+    assert f.pos == len(s)
+
+
+
 def test_empty_line():
     s = ' \t   \f \n   \n'
     f = run(s)



More information about the Pypy-commit mailing list