[pypy-commit] pypy py3.5: fix test (two errors on the same call, and pypy happens to report the other one now)

arigo pypy.commits at gmail.com
Sun Feb 19 04:26:24 EST 2017


Author: Armin Rigo <arigo at tunes.org>
Branch: py3.5
Changeset: r90193:a4715ec68be8
Date: 2017-02-19 10:25 +0100
http://bitbucket.org/pypy/pypy/changeset/a4715ec68be8/

Log:	fix test (two errors on the same call, and pypy happens to report
	the other one now)

diff --git a/lib-python/3/test/test_struct.py b/lib-python/3/test/test_struct.py
--- a/lib-python/3/test/test_struct.py
+++ b/lib-python/3/test/test_struct.py
@@ -542,7 +542,7 @@
 
         # format lists containing only count spec should result in an error
         self.assertRaises(struct.error, struct.pack, '12345')
-        self.assertRaises(struct.error, struct.unpack, '12345', '')
+        self.assertRaises(struct.error, struct.unpack, '12345', b'')
         self.assertRaises(struct.error, struct.pack_into, '12345', store, 0)
         self.assertRaises(struct.error, struct.unpack_from, '12345', store, 0)
 


More information about the pypy-commit mailing list