Author: Antonio Cuni <[email protected]>
Branch: py3k
Changeset: r57974:c40e27031eda
Date: 2012-10-10 16:11 +0200
http://bitbucket.org/pypy/pypy/changeset/c40e27031eda/
Log: this is a cpython impl detail
diff --git a/lib-python/3.2/test/test_int.py b/lib-python/3.2/test/test_int.py
--- a/lib-python/3.2/test/test_int.py
+++ b/lib-python/3.2/test/test_int.py
@@ -1,7 +1,7 @@
import sys
import unittest
-from test.support import run_unittest
+from test.support import run_unittest, check_impl_detail
L = [
('0', 0),
@@ -298,9 +298,10 @@
try:
int(TruncReturnsNonIntegral())
except TypeError as e:
- self.assertEqual(str(e),
- "__trunc__ returned non-Integral"
- " (type NonIntegral)")
+ if check_impl_detail(cpython=True):
+ self.assertEqual(str(e),
+ "__trunc__ returned non-Integral"
+ " (type NonIntegral)")
else:
self.fail("Failed to raise TypeError with %s" %
((base, trunc_result_base),))
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit