mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Fix test_types.py (broken due to removal of array.array('c')).
This commit is contained in:
parent
1718fd1dc5
commit
1f9f8254c4
1 changed files with 1 additions and 1 deletions
|
@ -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")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue