Oops, meant to attach diff file as well!
[EMAIL PROTECTED] wrote on 26/08/2005 12:39:05:
> I know you are making a release soon, so I thought I'd send you this
patch
> which fixes a couple of test issues. With this patch I get 14 test
> failures still, so I will attach the test log as well.
>
>
>
> Cheers,
> Ben[attachment "results.txt" deleted by Ben Young/Infinity]
> _______________________________________________
> [email protected]
> http://codespeak.net/mailman/listinfo/pypy-dev
Index: module/unicodedata/test/test_unicodedata.py
===================================================================
--- module/unicodedata/test/test_unicodedata.py (revision 16596)
+++ module/unicodedata/test/test_unicodedata.py (working copy)
@@ -42,9 +42,12 @@
def test_cjk(self):
import unicodedata
+ import sys
for first, last in ((0x3400, 0x4DB5),
(0x4E00, 0x9FA5), # 9FBB in Unicode 4.1
(0x20000, 0x2A6D6)):
+ if last + 1 > sys.maxunicode:
+ continue
# Test at and inside the boundary
for i in (first, first + 1, last - 1, last):
charname = 'CJK UNIFIED IDEOGRAPH-%X'%i
Index: module/__builtin__/test/impsubdir/compiled/x.pyc
===================================================================
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Index: lib/test2/test_file_extra.py
===================================================================
--- lib/test2/test_file_extra.py (revision 16596)
+++ lib/test2/test_file_extra.py (working copy)
@@ -27,7 +27,7 @@
def test_repr(self):
r = repr(self.file)
assert r.find('open file') >= 0
- assert r.find(self.file.name) >= 0
+ assert r.find(repr(self.file.name)) >= 0
assert r.find(self.file.mode) >= 0
class TestFdFile(TestFile):
_______________________________________________
[email protected]
http://codespeak.net/mailman/listinfo/pypy-dev