From 1f9f8254c44d18a60c1917eda2946e2fa426f3c6 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Tue, 3 Jul 2007 20:31:48 +0000 Subject: Fix test_types.py (broken due to removal of array.array('c')). --- Lib/test/test_types.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/test/test_types.py b/Lib/test/test_types.py index 158437b..a40145b 100644 --- a/Lib/test/test_types.py +++ b/Lib/test/test_types.py @@ -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") -- cgit v0.12