[pypy-commit] pypy py3k: add a py3k_skip helper, for tests which can be skipped now on py3k, but should be fixed sooner or later

antocuni noreply at buildbot.pypy.org
Tue Apr 17 17:58:27 CEST 2012


Author: Antonio Cuni <anto.cuni at gmail.com>
Branch: py3k
Changeset: r54470:485bd020e6f7
Date: 2012-04-17 15:41 +0200
http://bitbucket.org/pypy/pypy/changeset/485bd020e6f7/

Log:	add a py3k_skip helper, for tests which can be skipped now on py3k,
	but should be fixed sooner or later

diff --git a/pypy/conftest.py b/pypy/conftest.py
--- a/pypy/conftest.py
+++ b/pypy/conftest.py
@@ -29,6 +29,9 @@
 def pytest_configure(config):
     global option
     option = config.option
+    def py3k_skip(message):
+        py.test.skip('[py3k] %s' % message)
+    py.test.py3k_skip = py3k_skip
 
 def _set_platform(opt, opt_str, value, parser):
     from pypy.config.translationoption import PLATFORMS
diff --git a/pypy/objspace/std/test/test_dictmultiobject.py b/pypy/objspace/std/test/test_dictmultiobject.py
--- a/pypy/objspace/std/test/test_dictmultiobject.py
+++ b/pypy/objspace/std/test/test_dictmultiobject.py
@@ -158,6 +158,8 @@
         assert self.space.listview_int(w_d) == [1, 2]
 
     def test_keys_on_string_int_dict(self):
+        py.test.py3k_skip("StringDictStrategy not supported yet")
+        
         w = self.space.wrap
         w_d = self.space.newdict()
         w_d.initialize_content([(w(1), w("a")), (w(2), w("b"))])


More information about the pypy-commit mailing list