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

Tests depend on the module "eviltracer" that isn't on PYPI #116

Open
yurivict opened this issue Jun 18, 2023 · 2 comments
Open

Tests depend on the module "eviltracer" that isn't on PYPI #116

yurivict opened this issue Jun 18, 2023 · 2 comments

Comments

@yurivict
Copy link

here

Version: 3.6.1

@ionelmc
Copy link
Owner

ionelmc commented Jun 18, 2023

Eviltracer is a test artifact: https://github.com/ionelmc/python-hunter/blob/master/tests/eviltracer.pyx

It exists to perform certain tests.

What is the actual problem you are having?

@yurivict
Copy link
Author

Tests fail:

―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― ERROR collecting tests/test_integration.py ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
tests/test_integration.py:10: in <module>
    from process_tests import TestProcess
/usr/local/lib/python3.9/site-packages/process_tests.py:26: in <module>
    import unittest2 as unittest
/usr/local/lib/python3.9/site-packages/unittest2/__init__.py:40: in <module>
    from unittest2.collector import collector
/usr/local/lib/python3.9/site-packages/unittest2/collector.py:3: in <module>
    from unittest2.loader import defaultTestLoader
/usr/local/lib/python3.9/site-packages/unittest2/loader.py:13: in <module>
    from unittest2 import case, suite, util
/usr/local/lib/python3.9/site-packages/unittest2/case.py:18: in <module>
    from unittest2 import result
/usr/local/lib/python3.9/site-packages/unittest2/result.py:10: in <module>
    from unittest2.compatibility import wraps
/usr/local/lib/python3.9/site-packages/unittest2/compatibility.py:143: in <module>
    class ChainMap(collections.MutableMapping):
/usr/local/lib/python3.9/collections/__init__.py:62: in __getattr__
    warnings.warn("Using or importing the ABCs from 'collections' instead "
E   DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3, and in 3.10 it will stop working
collecting 102 items / 1 error                                                                                                                                                                                                 
―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― ERROR collecting tests/test_remote.py ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
tests/test_remote.py:7: in <module>
    from process_tests import TestProcess
/usr/local/lib/python3.9/site-packages/process_tests.py:26: in <module>
    import unittest2 as unittest
/usr/local/lib/python3.9/site-packages/unittest2/__init__.py:40: in <module>
    from unittest2.collector import collector
/usr/local/lib/python3.9/site-packages/unittest2/collector.py:3: in <module>
    from unittest2.loader import defaultTestLoader
/usr/local/lib/python3.9/site-packages/unittest2/loader.py:13: in <module>
    from unittest2 import case, suite, util
/usr/local/lib/python3.9/site-packages/unittest2/case.py:18: in <module>
    from unittest2 import result
/usr/local/lib/python3.9/site-packages/unittest2/result.py:10: in <module>
    from unittest2.compatibility import wraps
/usr/local/lib/python3.9/site-packages/unittest2/compatibility.py:143: in <module>
    class ChainMap(collections.MutableMapping):
/usr/local/lib/python3.9/collections/__init__.py:62: in __getattr__
    warnings.warn("Using or importing the ABCs from 'collections' instead "
E   DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3, and in 3.10 it will stop working
collecting 102 items / 3 errors                                                                                                                                                                                                
―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― ERROR collecting tests/test_tracer.py ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
ImportError while importing test module '/usr/ports/devel/py-hunter/work-py39/hunter-3.6.1/tests/test_tracer.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/local/lib/python3.9/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/test_tracer.py:82: in <module>
    from eviltracer import EvilTracer
E   ModuleNotFoundError: No module named 'eviltracer'
collected 106 items / 3 errors                                                                                                                                                                                                 

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

No branches or pull requests

2 participants