Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1.11.3: pytest is failing because it cannot find makefun.tests module #69

Closed
kloczek opened this issue Jun 9, 2021 · 3 comments · Fixed by #72
Closed

1.11.3: pytest is failing because it cannot find makefun.tests module #69

kloczek opened this issue Jun 9, 2021 · 3 comments · Fixed by #72

Comments

@kloczek
Copy link

kloczek commented Jun 9, 2021

After build and install module in rpm buildroot I'm trying to tet it with PYTHONPATH pointing to that install prefix.

+ PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-makefun-1.11.3-2.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-makefun-1.11.3-2.fc35.x86_64/usr/lib/python3.8/site-packages
+ PYTHONDONTWRITEBYTECODE=1
+ /usr/bin/pytest -ra
=========================================================================== test session starts ============================================================================
platform linux -- Python 3.8.9, pytest-6.2.4, py-1.10.0, pluggy-0.13.1 -- /usr/bin/python3
cachedir: .pytest_cache
hypothesis profile 'default' -> database=DirectoryBasedExampleDatabase('/home/tkloczko/rpmbuild/BUILD/makefun-1.11.3/.hypothesis/examples')
rootdir: /home/tkloczko/rpmbuild/BUILD/makefun-1.11.3, configfile: setup.cfg, testpaths: makefun/tests/
plugins: forked-1.3.0, shutil-1.7.0, virtualenv-1.7.0, expect-1.1.0, httpbin-1.0.0, xdist-2.2.1, flake8-1.0.7, timeout-1.4.2, betamax-0.8.1, freezegun-0.4.2, cases-3.4.6, case-1.5.3, isort-1.3.0, aspectlib-1.5.2, asyncio-0.15.1, toolbox-0.5, xprocess-0.17.1, aiohttp-0.3.0, checkdocs-2.7.0, mock-3.6.1, rerunfailures-9.1.1, requests-mock-1.9.3, Faker-8.4.0, cov-2.12.1, pyfakefs-4.5.0, hypothesis-6.13.14
collected 0 items / 20 errors

================================================================================== ERRORS ==================================================================================
_____________________________________________________________ ERROR collecting makefun/tests/test_advanced.py ______________________________________________________________
/usr/lib64/python3.8/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1014: in _gcd_import
    ???
<frozen importlib._bootstrap>:991: in _find_and_load
    ???
<frozen importlib._bootstrap>:961: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:219: in _call_with_frames_removed
    ???
<frozen importlib._bootstrap>:1014: in _gcd_import
    ???
<frozen importlib._bootstrap>:991: in _find_and_load
    ???
<frozen importlib._bootstrap>:973: in _find_and_load_unlocked
    ???
E   ModuleNotFoundError: No module named 'makefun.tests'
_____________________________________________________________ ERROR collecting makefun/tests/test_advanced.py ______________________________________________________________
ImportError while importing test module '/home/tkloczko/rpmbuild/BUILD/makefun-1.11.3/makefun/tests/test_advanced.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib64/python3.8/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
E   ModuleNotFoundError: No module named 'makefun.tests'
___________________________________________________________ ERROR collecting makefun/tests/test_compile_deco.py ____________________________________________________________
/usr/lib64/python3.8/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1014: in _gcd_import
    ???
<frozen importlib._bootstrap>:991: in _find_and_load
    ???
<frozen importlib._bootstrap>:961: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:219: in _call_with_frames_removed
    ???
<frozen importlib._bootstrap>:1014: in _gcd_import
    ???
<frozen importlib._bootstrap>:991: in _find_and_load
    ???
<frozen importlib._bootstrap>:973: in _find_and_load_unlocked
    ???
E   ModuleNotFoundError: No module named 'makefun.tests'
___________________________________________________________ ERROR collecting makefun/tests/test_compile_deco.py ____________________________________________________________
ImportError while importing test module '/home/tkloczko/rpmbuild/BUILD/makefun-1.11.3/makefun/tests/test_compile_deco.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib64/python3.8/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
E   ModuleNotFoundError: No module named 'makefun.tests'
_______________________________________________________ ERROR collecting makefun/tests/test_create_from_signature.py _______________________________________________________
/usr/lib64/python3.8/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1014: in _gcd_import
    ???
<frozen importlib._bootstrap>:991: in _find_and_load
    ???
<frozen importlib._bootstrap>:961: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:219: in _call_with_frames_removed
    ???
<frozen importlib._bootstrap>:1014: in _gcd_import
    ???
<frozen importlib._bootstrap>:991: in _find_and_load
    ???
<frozen importlib._bootstrap>:973: in _find_and_load_unlocked
    ???
E   ModuleNotFoundError: No module named 'makefun.tests'
_______________________________________________________ ERROR collecting makefun/tests/test_create_from_signature.py _______________________________________________________
ImportError while importing test module '/home/tkloczko/rpmbuild/BUILD/makefun-1.11.3/makefun/tests/test_create_from_signature.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib64/python3.8/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
E   ModuleNotFoundError: No module named 'makefun.tests'
________________________________________________________ ERROR collecting makefun/tests/test_create_from_string.py _________________________________________________________
/usr/lib64/python3.8/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1014: in _gcd_import
    ???
<frozen importlib._bootstrap>:991: in _find_and_load
    ???
<frozen importlib._bootstrap>:961: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:219: in _call_with_frames_removed
    ???
<frozen importlib._bootstrap>:1014: in _gcd_import
    ???
<frozen importlib._bootstrap>:991: in _find_and_load
    ???
<frozen importlib._bootstrap>:973: in _find_and_load_unlocked
    ???
E   ModuleNotFoundError: No module named 'makefun.tests'
________________________________________________________ ERROR collecting makefun/tests/test_create_from_string.py _________________________________________________________
ImportError while importing test module '/home/tkloczko/rpmbuild/BUILD/makefun-1.11.3/makefun/tests/test_create_from_string.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib64/python3.8/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
E   ModuleNotFoundError: No module named 'makefun.tests'
_____________________________________________________ ERROR collecting makefun/tests/test_create_from_string_cases.py ______________________________________________________
/usr/lib64/python3.8/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1014: in _gcd_import
    ???
<frozen importlib._bootstrap>:991: in _find_and_load
    ???
<frozen importlib._bootstrap>:961: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:219: in _call_with_frames_removed
    ???
<frozen importlib._bootstrap>:1014: in _gcd_import
    ???
<frozen importlib._bootstrap>:991: in _find_and_load
    ???
<frozen importlib._bootstrap>:973: in _find_and_load_unlocked
    ???
E   ModuleNotFoundError: No module named 'makefun.tests'
_____________________________________________________ ERROR collecting makefun/tests/test_create_from_string_cases.py ______________________________________________________
ImportError while importing test module '/home/tkloczko/rpmbuild/BUILD/makefun-1.11.3/makefun/tests/test_create_from_string_cases.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib64/python3.8/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
E   ModuleNotFoundError: No module named 'makefun.tests'
________________________________________________________________ ERROR collecting makefun/tests/test_doc.py ________________________________________________________________
/usr/lib64/python3.8/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1014: in _gcd_import
    ???
<frozen importlib._bootstrap>:991: in _find_and_load
    ???
<frozen importlib._bootstrap>:961: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:219: in _call_with_frames_removed
    ???
<frozen importlib._bootstrap>:1014: in _gcd_import
    ???
<frozen importlib._bootstrap>:991: in _find_and_load
    ???
<frozen importlib._bootstrap>:973: in _find_and_load_unlocked
    ???
E   ModuleNotFoundError: No module named 'makefun.tests'
________________________________________________________________ ERROR collecting makefun/tests/test_doc.py ________________________________________________________________
ImportError while importing test module '/home/tkloczko/rpmbuild/BUILD/makefun-1.11.3/makefun/tests/test_doc.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib64/python3.8/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
E   ModuleNotFoundError: No module named 'makefun.tests'
_______________________________________________________ ERROR collecting makefun/tests/test_generators_coroutines.py _______________________________________________________
/usr/lib64/python3.8/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1014: in _gcd_import
    ???
<frozen importlib._bootstrap>:991: in _find_and_load
    ???
<frozen importlib._bootstrap>:961: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:219: in _call_with_frames_removed
    ???
<frozen importlib._bootstrap>:1014: in _gcd_import
    ???
<frozen importlib._bootstrap>:991: in _find_and_load
    ???
<frozen importlib._bootstrap>:973: in _find_and_load_unlocked
    ???
E   ModuleNotFoundError: No module named 'makefun.tests'
_______________________________________________________ ERROR collecting makefun/tests/test_generators_coroutines.py _______________________________________________________
ImportError while importing test module '/home/tkloczko/rpmbuild/BUILD/makefun-1.11.3/makefun/tests/test_generators_coroutines.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib64/python3.8/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
E   ModuleNotFoundError: No module named 'makefun.tests'
______________________________________________________________ ERROR collecting makefun/tests/test_issues.py _______________________________________________________________
/usr/lib64/python3.8/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1014: in _gcd_import
    ???
<frozen importlib._bootstrap>:991: in _find_and_load
    ???
<frozen importlib._bootstrap>:961: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:219: in _call_with_frames_removed
    ???
<frozen importlib._bootstrap>:1014: in _gcd_import
    ???
<frozen importlib._bootstrap>:991: in _find_and_load
    ???
<frozen importlib._bootstrap>:973: in _find_and_load_unlocked
    ???
E   ModuleNotFoundError: No module named 'makefun.tests'
______________________________________________________________ ERROR collecting makefun/tests/test_issues.py _______________________________________________________________
ImportError while importing test module '/home/tkloczko/rpmbuild/BUILD/makefun-1.11.3/makefun/tests/test_issues.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib64/python3.8/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
E   ModuleNotFoundError: No module named 'makefun.tests'
________________________________________________________ ERROR collecting makefun/tests/test_partial_and_macros.py _________________________________________________________
/usr/lib64/python3.8/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1014: in _gcd_import
    ???
<frozen importlib._bootstrap>:991: in _find_and_load
    ???
<frozen importlib._bootstrap>:961: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:219: in _call_with_frames_removed
    ???
<frozen importlib._bootstrap>:1014: in _gcd_import
    ???
<frozen importlib._bootstrap>:991: in _find_and_load
    ???
<frozen importlib._bootstrap>:973: in _find_and_load_unlocked
    ???
E   ModuleNotFoundError: No module named 'makefun.tests'
________________________________________________________ ERROR collecting makefun/tests/test_partial_and_macros.py _________________________________________________________
ImportError while importing test module '/home/tkloczko/rpmbuild/BUILD/makefun-1.11.3/makefun/tests/test_partial_and_macros.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib64/python3.8/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
E   ModuleNotFoundError: No module named 'makefun.tests'
________________________________________________________________ ERROR collecting makefun/tests/test_so.py _________________________________________________________________
/usr/lib64/python3.8/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1014: in _gcd_import
    ???
<frozen importlib._bootstrap>:991: in _find_and_load
    ???
<frozen importlib._bootstrap>:961: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:219: in _call_with_frames_removed
    ???
<frozen importlib._bootstrap>:1014: in _gcd_import
    ???
<frozen importlib._bootstrap>:991: in _find_and_load
    ???
<frozen importlib._bootstrap>:973: in _find_and_load_unlocked
    ???
E   ModuleNotFoundError: No module named 'makefun.tests'
________________________________________________________________ ERROR collecting makefun/tests/test_so.py _________________________________________________________________
ImportError while importing test module '/home/tkloczko/rpmbuild/BUILD/makefun-1.11.3/makefun/tests/test_so.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib64/python3.8/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
E   ModuleNotFoundError: No module named 'makefun.tests'
========================================================================= short test summary info ==========================================================================
ERROR makefun/tests/test_advanced.py - ModuleNotFoundError: No module named 'makefun.tests'
ERROR makefun/tests/test_advanced.py
ERROR makefun/tests/test_compile_deco.py - ModuleNotFoundError: No module named 'makefun.tests'
ERROR makefun/tests/test_compile_deco.py
ERROR makefun/tests/test_create_from_signature.py - ModuleNotFoundError: No module named 'makefun.tests'
ERROR makefun/tests/test_create_from_signature.py
ERROR makefun/tests/test_create_from_string.py - ModuleNotFoundError: No module named 'makefun.tests'
ERROR makefun/tests/test_create_from_string.py
ERROR makefun/tests/test_create_from_string_cases.py - ModuleNotFoundError: No module named 'makefun.tests'
ERROR makefun/tests/test_create_from_string_cases.py
ERROR makefun/tests/test_doc.py - ModuleNotFoundError: No module named 'makefun.tests'
ERROR makefun/tests/test_doc.py
ERROR makefun/tests/test_generators_coroutines.py - ModuleNotFoundError: No module named 'makefun.tests'
ERROR makefun/tests/test_generators_coroutines.py
ERROR makefun/tests/test_issues.py - ModuleNotFoundError: No module named 'makefun.tests'
ERROR makefun/tests/test_issues.py
ERROR makefun/tests/test_partial_and_macros.py - ModuleNotFoundError: No module named 'makefun.tests'
ERROR makefun/tests/test_partial_and_macros.py
ERROR makefun/tests/test_so.py - ModuleNotFoundError: No module named 'makefun.tests'
ERROR makefun/tests/test_so.py
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 20 errors during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
============================================================================ 20 errors in 0.59s ============================================================================

and indeed there is no makefu.test in install prefix

[tkloczko@barrel SPECS]$ ls -l /home/tkloczko/rpmbuild/BUILDROOT/python-makefun-1.11.3-2.fc35.x86_64/usr/lib/python3.8/site-packages/makefun
total 80
-rw-r--r-- 1 tkloczko tkloczko  1020 Apr  8 10:10 __init__.py
-rw-r--r-- 1 tkloczko tkloczko   629 Apr  8 10:10 _main_latest_py.py
-rw-r--r-- 1 tkloczko tkloczko  3431 Apr  8 10:10 _main_legacy_py.py
-rw-r--r-- 1 tkloczko tkloczko 63362 Apr  8 10:10 main.py
drwxr-xr-x 1 tkloczko tkloczko   870 Jun  9 09:47 __pycache__
-rw-r--r-- 1 tkloczko tkloczko     0 Apr  8 10:10 py.typed
-rw-r--r-- 1 tkloczko tkloczko   144 Jun  9 09:47 _version.py
@kloczek
Copy link
Author

kloczek commented Jun 9, 2021

Short recipe how to reproduce above

python3 setup.py build
python3 setup.py install --skip-build --root </some/install/prefix>
PYTHONPATH=</some/install/prefix>/usr/lib64/python3.8/site-packages  /ust/bin/pytest

@smarie
Copy link
Owner

smarie commented Jun 9, 2021

See smarie/python-pytest-cases#220: the answer is the same for makefun ; since the tests/ directory is not included in the package, you have to tell pytest to use the tests folder from the sources.

@kloczek
Copy link
Author

kloczek commented Aug 19, 2021

Just checnged my python-makefun.spec to iuuse git tagged tar ball and pytest still is failing.

+ PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-makefun-1.11.3-2.1.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-makefun-1.11.3-2.1.fc35.x86_64/usr/lib/python3.8/site-packages
+ /usr/bin/pytest -ra
=========================================================================== test session starts ============================================================================
platform linux -- Python 3.8.11, pytest-6.2.4, py-1.10.0, pluggy-0.13.1 -- /usr/bin/python3
cachedir: .pytest_cache
benchmark: 3.4.1 (defaults: timer=time.perf_counter disable_gc=False min_rounds=5 min_time=0.000005 max_time=1.0 calibration_precision=10 warmup=False warmup_iterations=100000)
hypothesis profile 'default' -> database=DirectoryBasedExampleDatabase('/home/tkloczko/rpmbuild/BUILD/python-makefun-1.11.3/.hypothesis/examples')
Using --randomly-seed=470170853
rootdir: /home/tkloczko/rpmbuild/BUILD/python-makefun-1.11.3, configfile: setup.cfg, testpaths: makefun/tests/
plugins: forked-1.3.0, shutil-1.7.0, virtualenv-1.7.0, expect-1.1.0, flake8-1.0.7, timeout-1.4.2, betamax-0.8.1, freezegun-0.4.2, aspectlib-1.5.2, toolbox-0.5, rerunfailures-9.1.1, requests-mock-1.9.3, cov-2.12.1, pyfakefs-4.5.0, flaky-3.7.0, benchmark-3.4.1, xdist-2.3.0, pylama-7.7.1, datadir-1.3.1, regressions-2.2.0, cases-3.6.3, xprocess-0.18.1, black-0.3.12, checkdocs-2.7.1, anyio-3.3.0, Faker-8.11.0, asyncio-0.15.1, trio-0.7.0, httpbin-1.0.0, subtests-0.5.0, isort-2.0.0, hypothesis-6.14.6, mock-3.6.1, profiling-1.7.0, randomly-3.8.0
collected 0 items / 20 errors

================================================================================== ERRORS ==================================================================================
_____________________________________________________________ ERROR collecting makefun/tests/test_advanced.py ______________________________________________________________
/usr/lib64/python3.8/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1014: in _gcd_import
    ???
<frozen importlib._bootstrap>:991: in _find_and_load
    ???
<frozen importlib._bootstrap>:961: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:219: in _call_with_frames_removed
    ???
<frozen importlib._bootstrap>:1014: in _gcd_import
    ???
<frozen importlib._bootstrap>:991: in _find_and_load
    ???
<frozen importlib._bootstrap>:973: in _find_and_load_unlocked
    ???
E   ModuleNotFoundError: No module named 'makefun.tests'
_____________________________________________________________ ERROR collecting makefun/tests/test_advanced.py ______________________________________________________________
ImportError while importing test module '/home/tkloczko/rpmbuild/BUILD/python-makefun-1.11.3/makefun/tests/test_advanced.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib64/python3.8/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
E   ModuleNotFoundError: No module named 'makefun.tests'
___________________________________________________________ ERROR collecting makefun/tests/test_compile_deco.py ____________________________________________________________
/usr/lib64/python3.8/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1014: in _gcd_import
    ???
<frozen importlib._bootstrap>:991: in _find_and_load
    ???
<frozen importlib._bootstrap>:961: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:219: in _call_with_frames_removed
    ???
<frozen importlib._bootstrap>:1014: in _gcd_import
    ???
<frozen importlib._bootstrap>:991: in _find_and_load
    ???
<frozen importlib._bootstrap>:973: in _find_and_load_unlocked
    ???
E   ModuleNotFoundError: No module named 'makefun.tests'
___________________________________________________________ ERROR collecting makefun/tests/test_compile_deco.py ____________________________________________________________
ImportError while importing test module '/home/tkloczko/rpmbuild/BUILD/python-makefun-1.11.3/makefun/tests/test_compile_deco.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib64/python3.8/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
E   ModuleNotFoundError: No module named 'makefun.tests'
_______________________________________________________ ERROR collecting makefun/tests/test_create_from_signature.py _______________________________________________________
/usr/lib64/python3.8/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1014: in _gcd_import
    ???
<frozen importlib._bootstrap>:991: in _find_and_load
    ???
<frozen importlib._bootstrap>:961: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:219: in _call_with_frames_removed
    ???
<frozen importlib._bootstrap>:1014: in _gcd_import
    ???
<frozen importlib._bootstrap>:991: in _find_and_load
    ???
<frozen importlib._bootstrap>:973: in _find_and_load_unlocked
    ???
E   ModuleNotFoundError: No module named 'makefun.tests'
_______________________________________________________ ERROR collecting makefun/tests/test_create_from_signature.py _______________________________________________________
ImportError while importing test module '/home/tkloczko/rpmbuild/BUILD/python-makefun-1.11.3/makefun/tests/test_create_from_signature.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib64/python3.8/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
E   ModuleNotFoundError: No module named 'makefun.tests'
________________________________________________________ ERROR collecting makefun/tests/test_create_from_string.py _________________________________________________________
/usr/lib64/python3.8/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1014: in _gcd_import
    ???
<frozen importlib._bootstrap>:991: in _find_and_load
    ???
<frozen importlib._bootstrap>:961: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:219: in _call_with_frames_removed
    ???
<frozen importlib._bootstrap>:1014: in _gcd_import
    ???
<frozen importlib._bootstrap>:991: in _find_and_load
    ???
<frozen importlib._bootstrap>:973: in _find_and_load_unlocked
    ???
E   ModuleNotFoundError: No module named 'makefun.tests'
________________________________________________________ ERROR collecting makefun/tests/test_create_from_string.py _________________________________________________________
ImportError while importing test module '/home/tkloczko/rpmbuild/BUILD/python-makefun-1.11.3/makefun/tests/test_create_from_string.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib64/python3.8/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
E   ModuleNotFoundError: No module named 'makefun.tests'
_____________________________________________________ ERROR collecting makefun/tests/test_create_from_string_cases.py ______________________________________________________
/usr/lib64/python3.8/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1014: in _gcd_import
    ???
<frozen importlib._bootstrap>:991: in _find_and_load
    ???
<frozen importlib._bootstrap>:961: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:219: in _call_with_frames_removed
    ???
<frozen importlib._bootstrap>:1014: in _gcd_import
    ???
<frozen importlib._bootstrap>:991: in _find_and_load
    ???
<frozen importlib._bootstrap>:973: in _find_and_load_unlocked
    ???
E   ModuleNotFoundError: No module named 'makefun.tests'
_____________________________________________________ ERROR collecting makefun/tests/test_create_from_string_cases.py ______________________________________________________
ImportError while importing test module '/home/tkloczko/rpmbuild/BUILD/python-makefun-1.11.3/makefun/tests/test_create_from_string_cases.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib64/python3.8/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
E   ModuleNotFoundError: No module named 'makefun.tests'
________________________________________________________________ ERROR collecting makefun/tests/test_doc.py ________________________________________________________________
/usr/lib64/python3.8/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1014: in _gcd_import
    ???
<frozen importlib._bootstrap>:991: in _find_and_load
    ???
<frozen importlib._bootstrap>:961: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:219: in _call_with_frames_removed
    ???
<frozen importlib._bootstrap>:1014: in _gcd_import
    ???
<frozen importlib._bootstrap>:991: in _find_and_load
    ???
<frozen importlib._bootstrap>:973: in _find_and_load_unlocked
    ???
E   ModuleNotFoundError: No module named 'makefun.tests'
________________________________________________________________ ERROR collecting makefun/tests/test_doc.py ________________________________________________________________
ImportError while importing test module '/home/tkloczko/rpmbuild/BUILD/python-makefun-1.11.3/makefun/tests/test_doc.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib64/python3.8/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
E   ModuleNotFoundError: No module named 'makefun.tests'
_______________________________________________________ ERROR collecting makefun/tests/test_generators_coroutines.py _______________________________________________________
/usr/lib64/python3.8/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1014: in _gcd_import
    ???
<frozen importlib._bootstrap>:991: in _find_and_load
    ???
<frozen importlib._bootstrap>:961: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:219: in _call_with_frames_removed
    ???
<frozen importlib._bootstrap>:1014: in _gcd_import
    ???
<frozen importlib._bootstrap>:991: in _find_and_load
    ???
<frozen importlib._bootstrap>:973: in _find_and_load_unlocked
    ???
E   ModuleNotFoundError: No module named 'makefun.tests'
_______________________________________________________ ERROR collecting makefun/tests/test_generators_coroutines.py _______________________________________________________
ImportError while importing test module '/home/tkloczko/rpmbuild/BUILD/python-makefun-1.11.3/makefun/tests/test_generators_coroutines.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib64/python3.8/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
E   ModuleNotFoundError: No module named 'makefun.tests'
______________________________________________________________ ERROR collecting makefun/tests/test_issues.py _______________________________________________________________
/usr/lib64/python3.8/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1014: in _gcd_import
    ???
<frozen importlib._bootstrap>:991: in _find_and_load
    ???
<frozen importlib._bootstrap>:961: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:219: in _call_with_frames_removed
    ???
<frozen importlib._bootstrap>:1014: in _gcd_import
    ???
<frozen importlib._bootstrap>:991: in _find_and_load
    ???
<frozen importlib._bootstrap>:973: in _find_and_load_unlocked
    ???
E   ModuleNotFoundError: No module named 'makefun.tests'
______________________________________________________________ ERROR collecting makefun/tests/test_issues.py _______________________________________________________________
ImportError while importing test module '/home/tkloczko/rpmbuild/BUILD/python-makefun-1.11.3/makefun/tests/test_issues.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib64/python3.8/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
E   ModuleNotFoundError: No module named 'makefun.tests'
________________________________________________________ ERROR collecting makefun/tests/test_partial_and_macros.py _________________________________________________________
/usr/lib64/python3.8/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1014: in _gcd_import
    ???
<frozen importlib._bootstrap>:991: in _find_and_load
    ???
<frozen importlib._bootstrap>:961: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:219: in _call_with_frames_removed
    ???
<frozen importlib._bootstrap>:1014: in _gcd_import
    ???
<frozen importlib._bootstrap>:991: in _find_and_load
    ???
<frozen importlib._bootstrap>:973: in _find_and_load_unlocked
    ???
E   ModuleNotFoundError: No module named 'makefun.tests'
________________________________________________________ ERROR collecting makefun/tests/test_partial_and_macros.py _________________________________________________________
ImportError while importing test module '/home/tkloczko/rpmbuild/BUILD/python-makefun-1.11.3/makefun/tests/test_partial_and_macros.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib64/python3.8/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
E   ModuleNotFoundError: No module named 'makefun.tests'
________________________________________________________________ ERROR collecting makefun/tests/test_so.py _________________________________________________________________
/usr/lib64/python3.8/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1014: in _gcd_import
    ???
<frozen importlib._bootstrap>:991: in _find_and_load
    ???
<frozen importlib._bootstrap>:961: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:219: in _call_with_frames_removed
    ???
<frozen importlib._bootstrap>:1014: in _gcd_import
    ???
<frozen importlib._bootstrap>:991: in _find_and_load
    ???
<frozen importlib._bootstrap>:973: in _find_and_load_unlocked
    ???
E   ModuleNotFoundError: No module named 'makefun.tests'
________________________________________________________________ ERROR collecting makefun/tests/test_so.py _________________________________________________________________
ImportError while importing test module '/home/tkloczko/rpmbuild/BUILD/python-makefun-1.11.3/makefun/tests/test_so.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib64/python3.8/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
E   ModuleNotFoundError: No module named 'makefun.tests'
========================================================================= short test summary info ==========================================================================
ERROR makefun/tests/test_advanced.py - ModuleNotFoundError: No module named 'makefun.tests'
ERROR makefun/tests/test_advanced.py
ERROR makefun/tests/test_compile_deco.py - ModuleNotFoundError: No module named 'makefun.tests'
ERROR makefun/tests/test_compile_deco.py
ERROR makefun/tests/test_create_from_signature.py - ModuleNotFoundError: No module named 'makefun.tests'
ERROR makefun/tests/test_create_from_signature.py
ERROR makefun/tests/test_create_from_string.py - ModuleNotFoundError: No module named 'makefun.tests'
ERROR makefun/tests/test_create_from_string.py
ERROR makefun/tests/test_create_from_string_cases.py - ModuleNotFoundError: No module named 'makefun.tests'
ERROR makefun/tests/test_create_from_string_cases.py
ERROR makefun/tests/test_doc.py - ModuleNotFoundError: No module named 'makefun.tests'
ERROR makefun/tests/test_doc.py
ERROR makefun/tests/test_generators_coroutines.py - ModuleNotFoundError: No module named 'makefun.tests'
ERROR makefun/tests/test_generators_coroutines.py
ERROR makefun/tests/test_issues.py - ModuleNotFoundError: No module named 'makefun.tests'
ERROR makefun/tests/test_issues.py
ERROR makefun/tests/test_partial_and_macros.py - ModuleNotFoundError: No module named 'makefun.tests'
ERROR makefun/tests/test_partial_and_macros.py
ERROR makefun/tests/test_so.py - ModuleNotFoundError: No module named 'makefun.tests'
ERROR makefun/tests/test_so.py
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 20 errors during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
============================================================================ 20 errors in 0.69s ============================================================================
pytest-xprocess reminder::Be sure to terminate the started process by running 'pytest --xkill' if you have not explicitly done so in your fixture with 'xprocess.getinfo(<process_name>).terminate()'.

All because makefun.tests module whcih is used by test suite is not included in list of installed files.
I'm not sure but lokks like you are assuming that test suite will be testing source tree and not what is installed or copied by build into build/lib.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants