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
0.17.0: pytest is failing #173
Comments
I've been trying to thge same but with + PYTHONDONTWRITEBYTECODE=1
+ PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-zstandard-0.17.0-2.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-zstandard-0.17.0-2.fc35.x86_64/usr/lib/python3.8/site-packages
+ /usr/bin/pytest -ra --import-mode=importlib
=========================================================================== test session starts ============================================================================
platform linux -- Python 3.8.13, pytest-7.1.2, pluggy-1.0.0
rootdir: /home/tkloczko/rpmbuild/BUILD/python-zstandard-0.17.0
plugins: forked-1.4.0, xdist-2.5.0
collected 109 items / 10 errors / 3 skipped
================================================================================== ERRORS ==================================================================================
__________________________________________________________ ERROR collecting tests/test_compressor_copy_stream.py ___________________________________________________________
ImportError while importing test module '/home/tkloczko/rpmbuild/BUILD/python-zstandard-0.17.0/tests/test_compressor_copy_stream.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
tests/test_compressor_copy_stream.py:7: in <module>
from .common import (
E ModuleNotFoundError: No module named 'tests.common'; 'tests' is not a package
__________________________________________________________ ERROR collecting tests/test_compressor_read_to_iter.py __________________________________________________________
ImportError while importing test module '/home/tkloczko/rpmbuild/BUILD/python-zstandard-0.17.0/tests/test_compressor_read_to_iter.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
tests/test_compressor_read_to_iter.py:6: in <module>
from .common import (
E ModuleNotFoundError: No module named 'tests.common'; 'tests' is not a package
_________________________________________________________ ERROR collecting tests/test_compressor_stream_reader.py __________________________________________________________
ImportError while importing test module '/home/tkloczko/rpmbuild/BUILD/python-zstandard-0.17.0/tests/test_compressor_stream_reader.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
tests/test_compressor_stream_reader.py:6: in <module>
from .common import (
E ModuleNotFoundError: No module named 'tests.common'; 'tests' is not a package
_________________________________________________________ ERROR collecting tests/test_compressor_stream_writer.py __________________________________________________________
ImportError while importing test module '/home/tkloczko/rpmbuild/BUILD/python-zstandard-0.17.0/tests/test_compressor_stream_writer.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
tests/test_compressor_stream_writer.py:10: in <module>
from .common import (
E ModuleNotFoundError: No module named 'tests.common'; 'tests' is not a package
_________________________________________________________ ERROR collecting tests/test_decompressor_copy_stream.py __________________________________________________________
ImportError while importing test module '/home/tkloczko/rpmbuild/BUILD/python-zstandard-0.17.0/tests/test_decompressor_copy_stream.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
tests/test_decompressor_copy_stream.py:7: in <module>
from .common import (
E ModuleNotFoundError: No module named 'tests.common'; 'tests' is not a package
__________________________________________________ ERROR collecting tests/test_decompressor_multi_decompress_to_buffer.py __________________________________________________
ImportError while importing test module '/home/tkloczko/rpmbuild/BUILD/python-zstandard-0.17.0/tests/test_decompressor_multi_decompress_to_buffer.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
tests/test_decompressor_multi_decompress_to_buffer.py:6: in <module>
from .common import (
E ModuleNotFoundError: No module named 'tests.common'; 'tests' is not a package
_________________________________________________________ ERROR collecting tests/test_decompressor_read_to_iter.py _________________________________________________________
ImportError while importing test module '/home/tkloczko/rpmbuild/BUILD/python-zstandard-0.17.0/tests/test_decompressor_read_to_iter.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
tests/test_decompressor_read_to_iter.py:9: in <module>
from .common import (
E ModuleNotFoundError: No module named 'tests.common'; 'tests' is not a package
________________________________________________________ ERROR collecting tests/test_decompressor_stream_reader.py _________________________________________________________
ImportError while importing test module '/home/tkloczko/rpmbuild/BUILD/python-zstandard-0.17.0/tests/test_decompressor_stream_reader.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
tests/test_decompressor_stream_reader.py:7: in <module>
from .common import (
E ModuleNotFoundError: No module named 'tests.common'; 'tests' is not a package
________________________________________________________ ERROR collecting tests/test_decompressor_stream_writer.py _________________________________________________________
ImportError while importing test module '/home/tkloczko/rpmbuild/BUILD/python-zstandard-0.17.0/tests/test_decompressor_stream_writer.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
tests/test_decompressor_stream_writer.py:9: in <module>
from .common import (
E ModuleNotFoundError: No module named 'tests.common'; 'tests' is not a package
_____________________________________________________________ ERROR collecting tests/test_train_dictionary.py ______________________________________________________________
ImportError while importing test module '/home/tkloczko/rpmbuild/BUILD/python-zstandard-0.17.0/tests/test_train_dictionary.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
tests/test_train_dictionary.py:6: in <module>
from .common import (
E ModuleNotFoundError: No module named 'tests.common'; 'tests' is not a package
========================================================================= short test summary info ==========================================================================
SKIPPED [1] tests/test_compressor_fuzzing.py:9: unittest.case.SkipTest: hypothesis not available
SKIPPED [1] tests/test_data_structures_fuzzing.py:8: unittest.case.SkipTest: hypothesis not available
SKIPPED [1] tests/test_decompressor_fuzzing.py:9: unittest.case.SkipTest: hypothesis not available
ERROR tests/test_compressor_copy_stream.py
ERROR tests/test_compressor_read_to_iter.py
ERROR tests/test_compressor_stream_reader.py
ERROR tests/test_compressor_stream_writer.py
ERROR tests/test_decompressor_copy_stream.py
ERROR tests/test_decompressor_multi_decompress_to_buffer.py
ERROR tests/test_decompressor_read_to_iter.py
ERROR tests/test_decompressor_stream_reader.py
ERROR tests/test_decompressor_stream_writer.py
ERROR tests/test_train_dictionary.py
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 10 errors during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
====================================================================== 3 skipped, 10 errors in 0.72s ======================================================================= |
gentle ping 🤔 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm trying to package your module as an rpm package. So I'm using the typical PEP517 based build, install and test cycle used on building packages from non-root account.
python3 -sBm build -w --no-isolation
build
with--no-isolation
I'm using during all processes only locally installed modulesHere is pytest output:
Content of the
</install/prefix>
The text was updated successfully, but these errors were encountered: