Skip to content

Instantly share code, notes, and snippets.

@laike9m
Created September 13, 2021 06:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save laike9m/fed439251a9aa06a5330ab8c273506a9 to your computer and use it in GitHub Desktop.
Save laike9m/fed439251a9aa06a5330ab8c273506a9 to your computer and use it in GitHub Desktop.
run pytest
pdm run pytest [23:39:33]
================================================================== test session starts ==================================================================
platform darwin -- Python 3.7.12, pytest-6.2.5, py-1.10.0, pluggy-1.0.0
rootdir: /Users/laike9m/Dev/Python/pdir2
plugins: hypothesis-6.21.0, mypy-0.8.1
collected 0 items / 1 error
======================================================================== ERRORS =========================================================================
_____________________________________________________________ ERROR collecting test session _____________________________________________________________
__pypackages__/3.7/lib/_pytest/config/__init__.py:570: in _importconftest
mod = import_path(conftestpath, mode=importmode)
__pypackages__/3.7/lib/_pytest/pathlib.py:544: in import_path
raise ImportPathMismatchError(module_name, module_file, path)
E _pytest.pathlib.ImportPathMismatchError: ('IPython.conftest', '/Users/laike9m/Dev/Python/pdir2/__pypackages__/3.7/lib/IPython/conftest.py', PosixPath('/Users/laike9m/Dev/Python/pdir2/__pypackages__/3.9/lib/IPython/conftest.py'))
================================================================ short test summary info ================================================================
ERROR - _pytest.pathlib.ImportPathMismatchError: ('IPython.conftest', '/Users/laike9m/Dev/Python/pdir2/__pypackages__/3.7/lib/IPython/conftest.py', P...
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
=================================================================== 1 error in 4.25s ====================================================================
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment