[Python-checkins] r69578 - python/trunk/Lib/test/test_struct.py
georg.brandl
python-checkins at python.org
Fri Feb 13 12:03:59 CET 2009
Author: georg.brandl
Date: Fri Feb 13 12:03:59 2009
New Revision: 69578
Log:
#3694: add test for fix committed in r66693.
Modified:
python/trunk/Lib/test/test_struct.py
Modified: python/trunk/Lib/test/test_struct.py
==============================================================================
--- python/trunk/Lib/test/test_struct.py (original)
+++ python/trunk/Lib/test/test_struct.py Fri Feb 13 12:03:59 2009
@@ -512,6 +512,10 @@
self.assertRaises(struct.error, s.pack_into, small_buf, 0, test_string)
self.assertRaises(struct.error, s.pack_into, small_buf, 2, test_string)
+ # Test bogus offset (issue 3694)
+ sb = small_buf
+ self.assertRaises(TypeError, struct.pack_into, b'1', sb, None)
+
def test_pack_into_fn(self):
test_string = 'Reykjavik rocks, eow!'
writable_buf = array.array('c', ' '*100)
More information about the Python-checkins
mailing list