summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test_six.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/test_six.py b/test_six.py
index 34613ad..db9b624 100644
--- a/test_six.py
+++ b/test_six.py
@@ -59,11 +59,9 @@ def test_MAXSIZE():
except AttributeError:
# Before Python 2.6.
pass
- if sys.version_info[:2] == (2, 4):
- exc = ValueError
- else:
- exc = OverflowError
- py.test.raises(exc, operator.mul, [None], six.MAXSIZE + 1)
+ py.test.raises(
+ (ValueError, OverflowError),
+ operator.mul, [None], six.MAXSIZE + 1)
def test_lazy():