Author: Antonio Cuni <[email protected]>
Branch: fastjson
Changeset: r64772:7fddf7d2a349
Date: 2013-06-04 16:26 +0200
http://bitbucket.org/pypy/pypy/changeset/7fddf7d2a349/
Log: a passing test
diff --git a/pypy/module/_fastjson/test/test__fastjson.py
b/pypy/module/_fastjson/test/test__fastjson.py
--- a/pypy/module/_fastjson/test/test__fastjson.py
+++ b/pypy/module/_fastjson/test/test__fastjson.py
@@ -58,3 +58,9 @@
import _fastjson
s = r'"hello\nworld"'
assert _fastjson.loads(s) == "hello\nworld"
+
+ def test_unterminated_string_after_escape_sequence(self):
+ import _fastjson
+ s = r'"hello\nworld' # missing the trailing "
+ raises(ValueError, "_fastjson.loads(s)")
+
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit