-
Notifications
You must be signed in to change notification settings - Fork 13
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
Comments
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 |
See smarie/python-pytest-cases#220: the answer is the same for |
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 |
After build and install module in rpm buildroot I'm trying to tet it with PYTHONPATH pointing to that install prefix.
and indeed there is no makefu.test in install prefix
The text was updated successfully, but these errors were encountered: