Skip to content

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

Open

Description

@yurivict

here

Version: 3.6.1

Activity

  1. ionelmc commented on Jun 18, 2023

    @ionelmc
    Owner

    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?

  2. yurivict commented on Jun 18, 2023

    @yurivict
    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

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