diff options
author | Alexander Belopolsky <alexander.belopolsky@gmail.com> | 2011-01-11 22:35:58 (GMT) |
---|---|---|
committer | Alexander Belopolsky <alexander.belopolsky@gmail.com> | 2011-01-11 22:35:58 (GMT) |
commit | 4ea1aacb9438bee068767e93098c11ac7a9c7388 (patch) | |
tree | 1f09715f14f89e62fc517e6b80ceeee12667ef91 /Lib/test/test_array.py | |
parent | 830c85d0bacc2366af8b75becca021e00e976298 (diff) | |
download | cpython-4ea1aacb9438bee068767e93098c11ac7a9c7388.zip cpython-4ea1aacb9438bee068767e93098c11ac7a9c7388.tar.gz cpython-4ea1aacb9438bee068767e93098c11ac7a9c7388.tar.bz2 |
Reverted r87944 - issue #5109 should not have been backported
Diffstat (limited to 'Lib/test/test_array.py')
-rwxr-xr-x | Lib/test/test_array.py | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/Lib/test/test_array.py b/Lib/test/test_array.py index d92205b..4d56f54 100755 --- a/Lib/test/test_array.py +++ b/Lib/test/test_array.py @@ -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] |