1. Python CFFI
  2. Untitled project
  3. array-experiment

Commits

Ronny Pfannschmidt  committed 0185ba7

dont even collect test base classes

  • Participants
  • Parent commits 2ee2929
  • Branches default

Comments (0)

Files changed (1)

File conftest.py

View file
  • Ignore whitespace
 
 sys.modules['array'] = array
 
-def pytest_runtest_setup(item):
-    if not hasattr(item.parent.obj, 'typecode'):
-        pytest.skip("no typecode")
+@pytest.mark.tryfirst
+def pytest_pycollect_makeitem(collector, name, obj, __multicall__):
+    res = __multicall__.execute()
+    if hasattr(obj, 'typecode'):
+       return res