[Python-checkins] cpython (merge 3.5 -> 3.6): Merge 3.5
victor.stinner
python-checkins at python.org
Thu Feb 2 08:19:47 EST 2017
https://hg.python.org/cpython/rev/2470a5981f6a
changeset: 106384:2470a5981f6a
branch: 3.6
parent: 106376:483d9133fd7e
parent: 106383:32380d41e788
user: Victor Stinner <victor.stinner at gmail.com>
date: Thu Feb 02 14:18:43 2017 +0100
summary:
Merge 3.5
files:
Lib/test/test_struct.py | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/Lib/test/test_struct.py b/Lib/test/test_struct.py
--- a/Lib/test/test_struct.py
+++ b/Lib/test/test_struct.py
@@ -412,6 +412,10 @@
for i in range(6, len(test_string) + 1):
self.assertRaises(struct.error, struct.unpack_from, fmt, data, i)
+ # keyword arguments
+ self.assertEqual(s.unpack_from(buffer=test_string, offset=2),
+ (b'cd01',))
+
def test_pack_into(self):
test_string = b'Reykjavik rocks, eow!'
writable_buf = array.array('b', b' '*100)
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list