]> granicus.if.org Git - python/commitdiff
Fix repr.py -- it was triggering on the type name 'long', should be 'int'.
authorGuido van Rossum <guido@python.org>
Mon, 15 Jan 2007 00:14:39 +0000 (00:14 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 15 Jan 2007 00:14:39 +0000 (00:14 +0000)
BROKEN_TESTS
Lib/repr.py

index a14999c9639f8bdbdd4f20c7848b139cee88242d..4d513e61ce64a9562ba330acaf495242a8ec41a9 100644 (file)
@@ -1,4 +1,2 @@
 test_pickletools -- Test probably needs to be fixed
-test_repr -- test_numbers() fails
-test_socket -- ntol problems, see SF patch 1635058
 test_sqlite -- CheckLargeInt (sqlite3.test.types.SqliteTypeTests, sqlite3.test.types.DeclTypesTests)
index 32544a27c11f0f09e1379767e7479a289be257f6..c580168d64c18a0da8dfa17e0d7962d7acc4c9f7 100644 (file)
@@ -92,7 +92,7 @@ class Repr:
             s = s[:i] + '...' + s[len(s)-j:]
         return s
 
-    def repr_long(self, x, level):
+    def repr_int(self, x, level):
         s = __builtin__.repr(x) # XXX Hope this isn't too slow...
         if len(s) > self.maxlong:
             i = max(0, (self.maxlong-3)//2)