[pypy-svn] r16132 - pypy/dist/pypy/module/_codecs/test

arigo at codespeak.net arigo at codespeak.net
Thu Aug 18 13:40:46 CEST 2005


Author: arigo
Date: Thu Aug 18 13:40:46 2005
New Revision: 16132

Modified:
   pypy/dist/pypy/module/_codecs/test/test_codecs.py
Log:
Test for some open bugs in the string_escape codec.


Modified: pypy/dist/pypy/module/_codecs/test/test_codecs.py
==============================================================================
--- pypy/dist/pypy/module/_codecs/test/test_codecs.py	(original)
+++ pypy/dist/pypy/module/_codecs/test/test_codecs.py	Thu Aug 18 13:40:46 2005
@@ -42,4 +42,8 @@
 
     def test_escape_decode(self):
         test = 'a\n\\b\x00c\td\u2045'.encode('string_escape')
-        assert test.decode('string_escape') =='a\n\\b\x00c\td\u2045'
\ No newline at end of file
+        assert test.decode('string_escape') =='a\n\\b\x00c\td\u2045'
+        skip("string_escape has open bugs")
+        assert '\\077'.decode('string_escape') == '?'
+        assert '\\u1234'.decode('string_escape') == '\u1234'
+        assert '\\x41u1234'.decode('string_escape') == 'Au1234'



More information about the Pypy-commit mailing list