Author: Manuel Jacob
Branch: py3k
Changeset: r61209:84e5cc18568c
Date: 2013-02-13 14:07 +0100
http://bitbucket.org/pypy/pypy/changeset/84e5cc18568c/
Log: Port implementation-dependent skip to test_mutants in 3.2 test
suite.
diff --git a/lib-python/3.2/test/test_mutants.py
b/lib-python/3.2/test/test_mutants.py
--- a/lib-python/3.2/test/test_mutants.py
+++ b/lib-python/3.2/test/test_mutants.py
@@ -1,4 +1,4 @@
-from test.support import verbose, TESTFN
+from test.support import verbose, TESTFN, check_impl_detail
import random
import os
@@ -139,7 +139,13 @@
while dict1 and len(dict1) == len(dict2):
if verbose:
print(".", end=' ')
- c = dict1 == dict2
+ try:
+ c = dict1 == dict2
+ except RuntimeError:
+ # CPython never raises RuntimeError here, but other implementations
+ # might, and it's fine.
+ if check_impl_detail(cpython=True):
+ raise
if verbose:
print()
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit