Author: Philip Jenvey <[email protected]>
Branch: py3k
Changeset: r71780:f4c632903a3d
Date: 2014-05-29 12:21 -0700
http://bitbucket.org/pypy/pypy/changeset/f4c632903a3d/
Log: accommodate struct.error instead of TypeError 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
@@ -524,7 +524,8 @@
if IS32BIT:
def test_crasher(self):
# Pypy catches the string error instead of calculating the entire
size
- self.assertRaises((MemoryError, TypeError), struct.pack,
"357913941b", "a")
+ self.assertRaises((MemoryError, struct.error),
+ struct.pack, "357913941b", "a")
def test_trailing_counter(self):
store = array.array('b', b' '*100)
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit