diff options
Diffstat (limited to 'Lib/test/test_array.py')
-rwxr-xr-x | Lib/test/test_array.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/test/test_array.py b/Lib/test/test_array.py index c8698bb..8e22839 100755 --- a/Lib/test/test_array.py +++ b/Lib/test/test_array.py @@ -174,9 +174,8 @@ class BaseTest(unittest.TestCase): b.fromfile(f, len(self.example)) self.assertEqual(b, array.array(self.typecode, self.example)) self.assertNotEqual(a, b) - b.fromfile(f, len(self.example)) + self.assertRaises(EOFError, b.fromfile, f, len(self.example)+1) self.assertEqual(a, b) - self.assertRaises(EOFError, b.fromfile, f, 1) f.close() finally: if not f.closed: |