diff options
Diffstat (limited to 'Lib/test/test_sndhdr.py')
| -rw-r--r-- | Lib/test/test_sndhdr.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/test/test_sndhdr.py b/Lib/test/test_sndhdr.py index 361f70f..426417c 100644 --- a/Lib/test/test_sndhdr.py +++ b/Lib/test/test_sndhdr.py @@ -28,8 +28,9 @@ class TestFormats(unittest.TestCase): def test_pickleable(self): filename = findfile('sndhdr.aifc', subdir="sndhdrdata") what = sndhdr.what(filename) - dump = pickle.dumps(what) - self.assertEqual(pickle.loads(dump), what) + for proto in range(pickle.HIGHEST_PROTOCOL + 1): + dump = pickle.dumps(what, proto) + self.assertEqual(pickle.loads(dump), what) if __name__ == '__main__': |
