5.1.0: test suite is using `case` module which is unmaintained
See original GitHub issueTest suite is using case
module which is unmaintained and whcih uses unitest
module which is for python 2.x.
case
as well is using nose
which is fo python 2.x https://docs.nose2.io/en/latest/differences.html so maintaining set of modules to perform kombu
tests is harder and harder.
IMO the best would be swoitch to pytest only.
pytest output:
=========================================================================== test session starts ============================================================================
platform linux -- Python 3.8.11, pytest-6.2.4, py-1.10.0, pluggy-0.13.1
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)
Using --randomly-seed=3682244645
rootdir: /home/tkloczko/rpmbuild/BUILD/kombu-5.1.0, configfile: setup.cfg, testpaths: t/unit/
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 558 items / 18 errors / 20 deselected / 5 skipped / 515 selected
================================================================================== ERRORS ==================================================================================
__________________________________________________________________ ERROR collecting t/unit/test_common.py __________________________________________________________________
ImportError while importing test module '/home/tkloczko/rpmbuild/BUILD/kombu-5.1.0/t/unit/test_common.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)
t/unit/test_common.py:6: in <module>
from case import ContextMock
E ModuleNotFoundError: No module named 'case'
__________________________________________________________________ ERROR collecting t/unit/test_compat.py __________________________________________________________________
ImportError while importing test module '/home/tkloczko/rpmbuild/BUILD/kombu-5.1.0/t/unit/test_compat.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)
t/unit/test_compat.py:8: in <module>
from t.mocks import Transport, Channel
t/mocks.py:4: in <module>
from case import ContextMock
E ModuleNotFoundError: No module named 'case'
_______________________________________________________________ ERROR collecting t/unit/test_compression.py ________________________________________________________________
ImportError while importing test module '/home/tkloczko/rpmbuild/BUILD/kombu-5.1.0/t/unit/test_compression.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)
t/unit/test_compression.py:4: in <module>
from case import mock
E ModuleNotFoundError: No module named 'case'
________________________________________________________________ ERROR collecting t/unit/test_connection.py ________________________________________________________________
ImportError while importing test module '/home/tkloczko/rpmbuild/BUILD/kombu-5.1.0/t/unit/test_connection.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)
t/unit/test_connection.py:14: in <module>
from t.mocks import Transport
t/mocks.py:4: in <module>
from case import ContextMock
E ModuleNotFoundError: No module named 'case'
__________________________________________________________________ ERROR collecting t/unit/test_entity.py __________________________________________________________________
ImportError while importing test module '/home/tkloczko/rpmbuild/BUILD/kombu-5.1.0/t/unit/test_entity.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)
t/unit/test_entity.py:11: in <module>
from t.mocks import Transport
t/mocks.py:4: in <module>
from case import ContextMock
E ModuleNotFoundError: No module named 'case'
________________________________________________________________ ERROR collecting t/unit/test_messaging.py _________________________________________________________________
ImportError while importing test module '/home/tkloczko/rpmbuild/BUILD/kombu-5.1.0/t/unit/test_messaging.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)
t/unit/test_messaging.py:14: in <module>
from t.mocks import Transport
t/mocks.py:4: in <module>
from case import ContextMock
E ModuleNotFoundError: No module named 'case'
__________________________________________________________________ ERROR collecting t/unit/test_mixins.py __________________________________________________________________
ImportError while importing test module '/home/tkloczko/rpmbuild/BUILD/kombu-5.1.0/t/unit/test_mixins.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)
t/unit/test_mixins.py:5: in <module>
from case import ContextMock
E ModuleNotFoundError: No module named 'case'
______________________________________________________________ ERROR collecting t/unit/test_serialization.py _______________________________________________________________
ImportError while importing test module '/home/tkloczko/rpmbuild/BUILD/kombu-5.1.0/t/unit/test_serialization.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)
t/unit/test_serialization.py:8: in <module>
from case import mock
E ModuleNotFoundError: No module named 'case'
_______________________________________________________ ERROR collecting t/unit/asynchronous/aws/test_connection.py ________________________________________________________
ImportError while importing test module '/home/tkloczko/rpmbuild/BUILD/kombu-5.1.0/t/unit/asynchronous/aws/test_connection.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)
t/unit/asynchronous/aws/test_connection.py:23: in <module>
from t.mocks import PromiseMock
t/mocks.py:4: in <module>
from case import ContextMock
E ModuleNotFoundError: No module named 'case'
_____________________________________________________ ERROR collecting t/unit/asynchronous/aws/sqs/test_connection.py ______________________________________________________
ImportError while importing test module '/home/tkloczko/rpmbuild/BUILD/kombu-5.1.0/t/unit/asynchronous/aws/sqs/test_connection.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)
t/unit/asynchronous/aws/sqs/test_connection.py:11: in <module>
from t.mocks import PromiseMock
t/mocks.py:4: in <module>
from case import ContextMock
E ModuleNotFoundError: No module named 'case'
________________________________________________________ ERROR collecting t/unit/asynchronous/aws/sqs/test_queue.py ________________________________________________________
ImportError while importing test module '/home/tkloczko/rpmbuild/BUILD/kombu-5.1.0/t/unit/asynchronous/aws/sqs/test_queue.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)
t/unit/asynchronous/aws/sqs/test_queue.py:8: in <module>
from t.mocks import PromiseMock
t/mocks.py:4: in <module>
from case import ContextMock
E ModuleNotFoundError: No module named 'case'
__________________________________________________________ ERROR collecting t/unit/asynchronous/http/test_http.py __________________________________________________________
ImportError while importing test module '/home/tkloczko/rpmbuild/BUILD/kombu-5.1.0/t/unit/asynchronous/http/test_http.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)
t/unit/asynchronous/http/test_http.py:13: in <module>
from t.mocks import PromiseMock
t/mocks.py:4: in <module>
from case import ContextMock
E ModuleNotFoundError: No module named 'case'
_____________________________________________________________ ERROR collecting t/unit/transport/test_pyamqp.py _____________________________________________________________
ImportError while importing test module '/home/tkloczko/rpmbuild/BUILD/kombu-5.1.0/t/unit/transport/test_pyamqp.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)
t/unit/transport/test_pyamqp.py:6: in <module>
from case import mock
E ModuleNotFoundError: No module named 'case'
_____________________________________________________________ ERROR collecting t/unit/transport/test_redis.py ______________________________________________________________
ImportError while importing test module '/home/tkloczko/rpmbuild/BUILD/kombu-5.1.0/t/unit/transport/test_redis.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)
t/unit/transport/test_redis.py:10: in <module>
from case import ContextMock, mock
E ModuleNotFoundError: No module named 'case'
________________________________________________________ ERROR collecting t/unit/transport/virtual/test_exchange.py ________________________________________________________
ImportError while importing test module '/home/tkloczko/rpmbuild/BUILD/kombu-5.1.0/t/unit/transport/virtual/test_exchange.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)
t/unit/transport/virtual/test_exchange.py:8: in <module>
from t.mocks import Transport
t/mocks.py:4: in <module>
from case import ContextMock
E ModuleNotFoundError: No module named 'case'
____________________________________________________________ ERROR collecting t/unit/utils/test_amq_manager.py _____________________________________________________________
ImportError while importing test module '/home/tkloczko/rpmbuild/BUILD/kombu-5.1.0/t/unit/utils/test_amq_manager.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)
t/unit/utils/test_amq_manager.py:4: in <module>
from case import mock
E ModuleNotFoundError: No module named 'case'
_______________________________________________________________ ERROR collecting t/unit/utils/test_compat.py _______________________________________________________________
ImportError while importing test module '/home/tkloczko/rpmbuild/BUILD/kombu-5.1.0/t/unit/utils/test_compat.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)
t/unit/utils/test_compat.py:6: in <module>
from case import mock
E ModuleNotFoundError: No module named 'case'
_____________________________________________________________ ERROR collecting t/unit/utils/test_functional.py _____________________________________________________________
ImportError while importing test module '/home/tkloczko/rpmbuild/BUILD/kombu-5.1.0/t/unit/utils/test_functional.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)
t/unit/utils/test_functional.py:8: in <module>
from case import mock
E ModuleNotFoundError: No module named 'case'
========================================================================= short test summary info ==========================================================================
SKIPPED [1] t/unit/transport/test_consul.py:9: could not import 'consul': No module named 'consul'
SKIPPED [1] t/unit/transport/test_etcd.py:9: could not import 'etcd': No module named 'etcd'
SKIPPED [1] t/unit/transport/test_librabbitmq.py:5: could not import 'librabbitmq': No module named 'librabbitmq'
SKIPPED [1] t/unit/transport/test_mongodb.py:10: could not import 'pymongo': No module named 'pymongo'
SKIPPED [1] t/unit/transport/test_zookeeper.py:5: could not import 'kazoo': No module named 'kazoo'
ERROR t/unit/test_common.py
ERROR t/unit/test_compat.py
ERROR t/unit/test_compression.py
ERROR t/unit/test_connection.py
ERROR t/unit/test_entity.py
ERROR t/unit/test_messaging.py
ERROR t/unit/test_mixins.py
ERROR t/unit/test_serialization.py
ERROR t/unit/asynchronous/aws/test_connection.py
ERROR t/unit/asynchronous/aws/sqs/test_connection.py
ERROR t/unit/asynchronous/aws/sqs/test_queue.py
ERROR t/unit/asynchronous/http/test_http.py
ERROR t/unit/transport/test_pyamqp.py
ERROR t/unit/transport/test_redis.py
ERROR t/unit/transport/virtual/test_exchange.py
ERROR t/unit/utils/test_amq_manager.py
ERROR t/unit/utils/test_compat.py
ERROR t/unit/utils/test_functional.py
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 18 errors during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
=============================================================== 5 skipped, 20 deselected, 18 errors in 2.57s ===============================================================
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
An in-range update of mocha is breaking the build #2 - GitHub
The devDependency mocha was updated from 6.0.0 to 6.0.1 . Your tests are still failing with this version. Compare changes. Release Notes for...
Read more >vmware_dvswitch – Create or remove a Distributed Switch
The version of the Distributed Switch to create. Can be 6.0.0, 5.5.0, 5.1.0, 5.0.0 with a vCenter running vSphere 6.0 and 6.5. Can...
Read more >Changelog — pytest documentation
#10060: When running with --pdb , TestCase.tearDown is no longer called for tests when the class has been skipped via unittest.skip or pytest.mark....
Read more >Historical errata for Python Testing with pytest
PDF Pg Type Fixed on
67 ERROR 2017‑06‑07
12 TYPO 2017‑06‑07
2 TYPO 2017‑06‑07
Read more >perl5101delta - ActivePerl 5.26 Documentation
There are two new cases where when now interprets its argument as a boolean, ... Database included in Perl 5.10.1 has been updated...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Most of
case
usages were removed by me. The only pending ones are mainly special helper utilities which maybe can be moved directly to each Celery repository. This will increase duplicities but it will remove easily dependency tocase
.Sorry have no time to work on that. I’m only reporting what I found during package
kombu
as rpm and Solaris IPS packages.