Skip to content

0.2.3: pytest is failing #13

@kloczek

Description

@kloczek

Looks like pytest wants package module.
On pypi I see only module which is no longer maintained since 2011 🤔

+ PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-pytest-integration-0.2.3-2.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-pytest-integration-0.2.3-2.fc35.x86_64/usr/lib/python3.8/site-packages
+ /usr/bin/pytest -ra -m 'not network'
==================================================================================== test session starts ====================================================================================
platform linux -- Python 3.8.16, pytest-7.2.2, pluggy-1.0.0
rootdir: /home/tkloczko/rpmbuild/BUILD/pytest-integration-0.2.3
plugins: integration-0.2.3
collected 0 items / 2 errors

========================================================================================== ERRORS ===========================================================================================
_______________________________________________________________________ ERROR collecting example/tests/test_module.py _______________________________________________________________________
ImportError while importing test module '/home/tkloczko/rpmbuild/BUILD/pytest-integration-0.2.3/example/tests/test_module.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)
example/tests/test_module.py:3: in <module>
    from package import module as sut
E   ModuleNotFoundError: No module named 'package'
____________________________________________________________________ ERROR collecting example/tests/test_other_module.py ____________________________________________________________________
ImportError while importing test module '/home/tkloczko/rpmbuild/BUILD/pytest-integration-0.2.3/example/tests/test_other_module.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)
example/tests/test_other_module.py:3: in <module>
    from package import other_module as sut
E   ModuleNotFoundError: No module named 'package'
================================================================================== short test summary info ==================================================================================
ERROR example/tests/test_module.py
ERROR example/tests/test_other_module.py
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 2 errors during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
===================================================================================== 2 errors in 0.09s =====================================================================================

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions