1. Pypy
  2. Untitled project
  3. pypy


Amaury Forgeot d'Arc  committed f434ee4

MixedModule tests make no sense with appdirect.

  • Participants
  • Parent commits 0b3d3d4
  • Branches default

Comments (0)

Files changed (2)

File pypy/interpreter/gateway.py

View file
     if not isinstance(source, str):
         source = py.std.inspect.getsource(source).lstrip()
-        while source.startswith('@py.test.mark.'):
+        while source.startswith(('@py.test.mark.', '@pytest.mark.')):
             # these decorators are known to return the same function
             # object, we may ignore them
             assert '\n' in source

File pypy/interpreter/test/test_extmodules.py

View file
 import sys
+import pytest
 from pypy.config.pypyoption import get_pypy_config
 from pypy.objspace.std import StdObjSpace
     def teardown_class(cls):
         sys.path[:] = old_sys_path
+    @pytest.mark.skipif("config.option.runappdirect")
     def test_import(self):
         import extmod
         assert extmod.__file__.endswith('extmod')