]> granicus.if.org Git - python/commitdiff
Fix test_types.py (broken due to removal of array.array('c')).
authorGuido van Rossum <guido@python.org>
Tue, 3 Jul 2007 20:31:48 +0000 (20:31 +0000)
committerGuido van Rossum <guido@python.org>
Tue, 3 Jul 2007 20:31:48 +0000 (20:31 +0000)
Lib/test/test_types.py

index 158437b5854bc6f03a703fe4504b9dc693f9fa2f..a40145b45fb3b8c04dcfbe03d5358ec646f9ef63 100644 (file)
@@ -247,7 +247,7 @@ class TypesTests(unittest.TestCase):
         # array.array() returns an object that does not implement a char buffer,
         # something which int() uses for conversion.
         import array
-        try: int(buffer(array.array('c')))
+        try: int(buffer(array.array('b')))
         except TypeError: pass
         else: self.fail("char buffer (at C level) not working")