[pypy-svn] r58893 - pypy/branch/2.5-merge/pypy/lib/app_test
arigo at codespeak.net
arigo at codespeak.net
Fri Oct 10 12:15:57 CEST 2008
Author: arigo
Date: Fri Oct 10 12:15:56 2008
New Revision: 58893
Modified:
pypy/branch/2.5-merge/pypy/lib/app_test/test_defaultdict.py
Log:
(antocuni, arigo)
Skip these tests on top of 2.3 or 2.4.
Modified: pypy/branch/2.5-merge/pypy/lib/app_test/test_defaultdict.py
==============================================================================
--- pypy/branch/2.5-merge/pypy/lib/app_test/test_defaultdict.py (original)
+++ pypy/branch/2.5-merge/pypy/lib/app_test/test_defaultdict.py Fri Oct 10 12:15:56 2008
@@ -1,12 +1,14 @@
# defaultdict Tests
# from CPython2.5
-import copy
+import sys
+if sys.version_info < (2, 5):
+ import py
+ # the app-level defaultdict relies on the interp-level dict
+ # calling __missing__()
+ py.test.skip("these tests only run on top of CPython 2.5")
-# for passing the test on top of 2.3
-from py.builtin import reversed
-import pypy.lib.collections
-pypy.lib.collections.reversed = reversed
+import copy
from pypy.lib.collections import defaultdict
More information about the Pypy-commit
mailing list