eukaryote / pytest-tornasync

A pytest plugin for testing Tornado (version 5.0 or newer) apps using plain (undecoratored) native coroutine tests.
MIT License
25 stars 4 forks source link

Tests fail: cannot import name 'MESSAGE' from 'test' (/usr/local/lib/python3.9/test/__init__.py) #15

Open yurivict opened 2 years ago

yurivict commented 2 years ago
=========================================================================================== ERRORS ===========================================================================================
____________________________________________________________________________ ERROR collecting test/test_plugin.py ____________________________________________________________________________
ImportError while importing test module '/disk-samsung/freebsd-ports/devel/py-pytest-tornasync/work-py39/pytest-tornasync-0.6.0.post2/test/test_plugin.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)
test/test_plugin.py:9: in <module>
    from test import MESSAGE, PAUSE_TIME
E   ImportError: cannot import name 'MESSAGE' from 'test' (/usr/local/lib/python3.9/test/__init__.py)
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
====================================================================================== 1 error in 0.45s ======================================================================================
*** Error code 2

Version: 0.6.0.post2 Python-3.9 FreeBSD 13.1 STABLE