mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
Fix pickling test in test_memoryio.
The test was closing the orginal object instead the copy. This didn't result in visible failures because the loop range was incorrect as well.
This commit is contained in:
parent
9a7a81195c
commit
6eea818423
1 changed files with 2 additions and 2 deletions
|
@ -379,8 +379,8 @@ class MemoryTestMixin:
|
|||
self.assertEqual(obj.__class__, obj2.__class__)
|
||||
self.assertEqual(obj.foo, obj2.foo)
|
||||
self.assertEqual(obj.tell(), obj2.tell())
|
||||
obj.close()
|
||||
self.assertRaises(ValueError, pickle.dumps, obj, proto)
|
||||
obj2.close()
|
||||
self.assertRaises(ValueError, pickle.dumps, obj2, proto)
|
||||
del __main__.PickleTestMemIO
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue