You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the Bug
Run unittest in local virtual environment that managed by poetry raises the following error:
(coveralls-py3.11) mac10.12 in ~/trying/coveralls-python on master ● λ poetry run pytest
====================================================== test session starts =======================================================
platform darwin -- Python 3.11.8, pytest-8.2.2, pluggy-1.5.0
rootdir: /Users/mac10.12/trying/coveralls-python
configfile: pyproject.toml
collected 59 items / 1 error
============================================================= ERRORS =============================================================
_______________________________________________ ERROR collecting tests/cli_test.py _______________________________________________
../../Library/Caches/pypoetry/virtualenvs/coveralls-6KVgLntz-py3.11/lib/python3.11/site-packages/_pytest/python.py:492: in importtestmodule
mod = import_path(
../../Library/Caches/pypoetry/virtualenvs/coveralls-6KVgLntz-py3.11/lib/python3.11/site-packages/_pytest/pathlib.py:591: in import_path
importlib.import_module(module_name)
/usr/local/Cellar/[email protected]/3.11.8/Frameworks/Python.framework/Versions/3.11/lib/python3.11/importlib/__init__.py:126: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1204: in _gcd_import
???
<frozen importlib._bootstrap>:1176: in _find_and_load
???
<frozen importlib._bootstrap>:1147: in _find_and_load_unlocked
???
<frozen importlib._bootstrap>:690: in _load_unlocked
???
../../Library/Caches/pypoetry/virtualenvs/coveralls-6KVgLntz-py3.11/lib/python3.11/site-packages/_pytest/assertion/rewrite.py:178: in exec_module
exec(co, module.__dict__)
tests/cli_test.py:8: in <module>
import coveralls.cli
coveralls/cli.py:43: in <module>
import docopt
E File "/Users/mac10.12/Library/Caches/pypoetry/virtualenvs/coveralls-6KVgLntz-py3.11/lib/python3.11/site-packages/docopt.py", line 165
E name = re.findall('(<\S*?>)', source)[0]
E ^^^^^^^^^^
E SyntaxError: invalid escape sequence '\S'
==================================================== short test summary info =====================================================
ERROR tests/cli_test.py
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
======================================================== 1 error in 1.62s ========================================================
To Reproduce
git clone [email protected]:TheKevJames/coveralls-python
cd coveralls-python
poetry install
poetry run pytest
Expected Behavior
Success to run poetry run pytest
Describe the Bug
Run unittest in local virtual environment that managed by poetry raises the following error:
To Reproduce
Expected Behavior
Success to run
poetry run pytest
Package Versions
Trace Logs
Provide coverage logs w/ DEBUG logging enabled (run
coverage debug ...
)Other
When virtual environment was create by
python -m venv
, it was able to runpytest
without any error raised.The text was updated successfully, but these errors were encountered: