diff options
Diffstat (limited to 'Lib')
-rwxr-xr-x | Lib/test/test_array.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Lib/test/test_array.py b/Lib/test/test_array.py index 1cce991..b44eb97 100755 --- a/Lib/test/test_array.py +++ b/Lib/test/test_array.py @@ -504,6 +504,12 @@ class BaseTest(unittest.TestCase): array.array(self.typecode) ) + a = 5 * array.array(self.typecode, self.example[:1]) + self.assertEqual( + a, + array.array(self.typecode, [a[0]] * 5) + ) + self.assertRaises(TypeError, a.__mul__, "bad") def test_imul(self): |