[Python-checkins] cpython (3.3): Fix pickling test in test_memoryio.
alexandre.vassalotti
python-checkins at python.org
Sun Apr 14 09:59:47 CEST 2013
http://hg.python.org/cpython/rev/8345b0dcb5e2
changeset: 83322:8345b0dcb5e2
branch: 3.3
parent: 83319:faa5d705c27d
user: Alexandre Vassalotti <alexandre at peadrop.com>
date: Sun Apr 14 00:56:39 2013 -0700
summary:
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.
files:
Lib/test/test_memoryio.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/Lib/test/test_memoryio.py b/Lib/test/test_memoryio.py
--- a/Lib/test/test_memoryio.py
+++ b/Lib/test/test_memoryio.py
@@ -379,8 +379,8 @@
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
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list