[pypy-svn] pypy default: Skip some tests when run with the -A option
amauryfa
commits-noreply at bitbucket.org
Mon Feb 28 11:32:34 CET 2011
Author: Amaury Forgeot d'Arc <amauryfa at gmail.com>
Branch:
Changeset: r42342:0ee3aec5d618
Date: 2011-02-28 11:29 +0100
http://bitbucket.org/pypy/pypy/changeset/0ee3aec5d618/
Log: Skip some tests when run with the -A option
diff --git a/pypy/interpreter/test/test_module.py b/pypy/interpreter/test/test_module.py
--- a/pypy/interpreter/test/test_module.py
+++ b/pypy/interpreter/test/test_module.py
@@ -51,6 +51,8 @@
def test_repr(self):
import sys
+ if not hasattr(sys, "pypy_objspaceclass"):
+ skip("need PyPy for _pypy_interact")
r = repr(sys)
assert r == "<module 'sys' (built-in)>"
diff --git a/pypy/interpreter/test/test_mixedmodule.py b/pypy/interpreter/test/test_mixedmodule.py
--- a/pypy/interpreter/test/test_mixedmodule.py
+++ b/pypy/interpreter/test/test_mixedmodule.py
@@ -1,4 +1,5 @@
from pypy.interpreter.mixedmodule import MixedModule
+import py.test
class TestMixedModule(object):
@@ -31,6 +32,8 @@
assert isinstance(self.space.builtin_modules["test_module.sub"], SubModule)
class AppTestMixedModule(object):
+ pytestmark = py.test.mark.skipif("config.option.runappdirect")
+
def setup_class(cls):
space = cls.space
More information about the Pypy-commit
mailing list