[pypy-commit] pypy default: follow-up on 81d063af711f: only run this test in "pypy py.test -A"

arigo pypy.commits at gmail.com
Fri Nov 11 02:05:19 EST 2016


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r88307:ba5310864c14
Date: 2016-11-11 08:04 +0100
http://bitbucket.org/pypy/pypy/changeset/ba5310864c14/

Log:	follow-up on 81d063af711f: only run this test in "pypy py.test -A"

diff --git a/pypy/module/__pypy__/test/test_special.py b/pypy/module/__pypy__/test/test_special.py
--- a/pypy/module/__pypy__/test/test_special.py
+++ b/pypy/module/__pypy__/test/test_special.py
@@ -92,7 +92,6 @@
         from __pypy__ import do_what_I_mean
         x = do_what_I_mean()
         assert x == 42
-        raises(SystemError, do_what_I_mean, 1)
 
     def test_list_strategy(self):
         from __pypy__ import strategy
@@ -136,9 +135,19 @@
 class AppTestJitFeatures(object):
     spaceconfig = {"translation.jit": True}
 
+    def setup_class(cls):
+        cls.w_runappdirect = cls.space.wrap(cls.runappdirect)
+
     def test_jit_backend_features(self):
         from __pypy__ import jit_backend_features
         supported_types = jit_backend_features
         assert isinstance(supported_types, list)
         for x in supported_types:
             assert x in ['floats', 'singlefloats', 'longlong']
+
+    def test_do_what_I_mean_error(self):
+        if not self.runappdirect:
+            skip("we don't wrap a random exception inside SystemError "
+                 "when untranslated, because it makes testing harder")
+        from __pypy__ import do_what_I_mean
+        raises(SystemError, do_what_I_mean, 1)


More information about the pypy-commit mailing list