diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2017-02-02 14:18:43 +0100 |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2017-02-02 14:18:43 +0100 |
commit | 20aa26c4bbc9953fb4de28bf6faa05584908f381 (patch) | |
tree | a5ee18594079736f3d81060b60d154a5e43bd54e | |
parent | 11b22721760007e51ce4539855feea2c4ccf66a0 (diff) | |
parent | 589bb606fa41d3ab42d65f3fe8d94c86a8870d33 (diff) | |
download | cpython-20aa26c4bbc9953fb4de28bf6faa05584908f381.tar.gz |
Merge 3.5
-rw-r--r-- | 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 index 4d9d601ef4..be0047589c 100644 --- a/Lib/test/test_struct.py +++ b/Lib/test/test_struct.py @@ -412,6 +412,10 @@ class StructTest(unittest.TestCase): 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) |