[pypy-dev] Fw: Patches

Ben.Young at risk.sungard.com Ben.Young at risk.sungard.com
Tue Aug 16 12:48:08 CEST 2005


Not sure if the patch actually got through. Here it is directly:

Index: module/unicodedata/test/test_unicodedata.py
===================================================================
--- module/unicodedata/test/test_unicodedata.py (revision 16097)
+++ 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 16097)
+++ 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):
Index: translator/llvm2/test/test_lltype.py
===================================================================
--- translator/llvm2/test/test_lltype.py        (revision 16097)
+++ translator/llvm2/test/test_lltype.py        (working copy)
@@ -227,9 +227,9 @@
     floats.f1 = 1.25
     floats.f2 = 
10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.252984
     floats.f3 = 
float(29050000000000000000000000000000000000000000000000000000000000000000)
-    floats.f4 = float("inf")
-    floats.f5 = float("nan")
-    f = float("nan")
+    #floats.f4 = float("inf")
+    #floats.f5 = float("nan")
+    #f = float("nan")
     def floats_fn():
         res  = floats.f1 == 1.25
         res += floats.f2 > 1e100


pypy-dev-bounces at codespeak.net wrote on 16/08/2005 11:44:44:

> Hi Everyone,
> 
> I was wondering if anyone would mind applying this patch that causes a 
few 
> more tests to pass on windows. After this has been applied I've got the 
> number of test failures (on windows) down to 14.
> 
> 
> 
> Cheers,
> Ben_______________________________________________
> pypy-dev at codespeak.net
> http://codespeak.net/mailman/listinfo/pypy-dev



More information about the Pypy-dev mailing list