Commits

Armin Rigo committed 800cf36

This part of the test only really makes sense if wchar_t
is 4 bytes but unicode chars are 2 bytes.

Comments (0)

Files changed (1)

     #assert f(u'a\u1234b') == 3    -- not implemented
     py.test.raises(NotImplementedError, f, u'a\u1234b')
     #
-    if wchar4:
+    if wchar4 and not pyuni4:
         # try out-of-range wchar_t values
         x = cast(BWChar, 1114112)
         py.test.raises(ValueError, unicode, x)