[pypy-svn] pypy default: Skip this whole test file on top of non-CPython implementations.

arigo commits-noreply at bitbucket.org
Thu Feb 10 14:48:47 CET 2011


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r41778:388cf91da597
Date: 2011-02-10 14:48 +0100
http://bitbucket.org/pypy/pypy/changeset/388cf91da597/

Log:	Skip this whole test file on top of non-CPython implementations.

diff --git a/lib-python/2.7.0/test/test_ascii_formatd.py b/lib-python/modified-2.7.0/test/test_ascii_formatd.py
copy from lib-python/2.7.0/test/test_ascii_formatd.py
copy to lib-python/modified-2.7.0/test/test_ascii_formatd.py
--- a/lib-python/2.7.0/test/test_ascii_formatd.py
+++ b/lib-python/modified-2.7.0/test/test_ascii_formatd.py
@@ -4,6 +4,10 @@
 
 import unittest
 from test.test_support import check_warnings, run_unittest, import_module
+from test.test_support import check_impl_detail
+
+if not check_impl_detail(cpython=True):
+    raise unittest.SkipTest("this test is only for CPython")
 
 # Skip tests if _ctypes module does not exist
 import_module('_ctypes')


More information about the Pypy-commit mailing list