Source

array-experiment / conftest.py

import imp
import sys

import pytest

fp, pathname, description = imp.find_module('array', ['.'])

with fp:
    array = imp.load_module('array', fp, pathname, description)

sys.modules['array'] = array

@pytest.mark.tryfirst
def pytest_pycollect_makeitem(collector, name, obj, __multicall__):
    res = __multicall__.execute()
    if hasattr(obj, 'typecode'):
       return res