mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Reverted r87944 - issue #5109 should not have been backported
This commit is contained in:
parent
830c85d0ba
commit
4ea1aacb94
3 changed files with 5 additions and 29 deletions
|
@ -239,11 +239,6 @@ class BaseTest(unittest.TestCase):
|
|||
if a.itemsize>1:
|
||||
self.assertRaises(ValueError, b.fromstring, "x")
|
||||
|
||||
def test_fromarray(self):
|
||||
a = array.array(self.typecode, self.example)
|
||||
b = array.array(self.typecode, a)
|
||||
self.assertEqual(a, b)
|
||||
|
||||
def test_repr(self):
|
||||
a = array.array(self.typecode, 2*self.example)
|
||||
self.assertEqual(a, eval(repr(a), {"array": array.array}))
|
||||
|
@ -963,11 +958,6 @@ class NumberTest(BaseTest):
|
|||
|
||||
self.assertRaises(AttributeError, setattr, a, "color", "blue")
|
||||
|
||||
def test_frombytearray(self):
|
||||
a = array.array('b', range(10))
|
||||
b = array.array(self.typecode, a)
|
||||
self.assertEqual(a, b)
|
||||
|
||||
class SignedNumberTest(NumberTest):
|
||||
example = [-1, 0, 1, 42, 0x7f]
|
||||
smallerexample = [-1, 0, 1, 42, 0x7e]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue