[pypy-commit] pypy default: add test that goes through runicode.ord_accepts_surrogate

mattip noreply at buildbot.pypy.org
Wed Feb 6 21:52:45 CET 2013


Author: mattip <matti.picus at gmail.com>
Branch: 
Changeset: r60914:f9b0d0e350a8
Date: 2013-02-06 22:51 +0200
http://bitbucket.org/pypy/pypy/changeset/f9b0d0e350a8/

Log:	add test that goes through runicode.ord_accepts_surrogate

diff --git a/pypy/module/unicodedata/test/test_unicodedata.py b/pypy/module/unicodedata/test/test_unicodedata.py
--- a/pypy/module/unicodedata/test/test_unicodedata.py
+++ b/pypy/module/unicodedata/test/test_unicodedata.py
@@ -102,3 +102,7 @@
         import unicodedata
         # For no reason, unicodedata.mirrored() returns an int, not a bool
         assert repr(unicodedata.mirrored(u' ')) == '0'
+
+    def test_bidirectional(self):
+        import unicodedata
+        raises(ValueError, unicodedata.bidirectional, u'xx')


More information about the pypy-commit mailing list