-- sys -------------------------------------------------------
coverage_version: 6.4.1
coverage_module: /home/jmsh/github/pysindy/env/lib/python3.7/site-packages/coverage/__init__.py
tracer: -none-
CTracer: available
plugins.file_tracers: -none-
plugins.configurers: -none-
plugins.context_switchers: -none-
configs_attempted: .coveragerc
setup.cfg
tox.ini
pyproject.toml
configs_read: -none-
config_file: None
config_contents: -none-
data_file: -none-
python: 3.7.5 (default, Dec 9 2021, 17:04:37) [GCC 8.4.0]
platform: Linux-4.15.0-173-generic-x86_64-with-Ubuntu-18.04-bionic
implementation: CPython
executable: /home/jmsh/github/pysindy/env/bin/python
def_encoding: utf-8
fs_encoding: utf-8
pid: 55497
cwd: /home/jmsh/github/pysindy/.vscode
path: /home/jmsh/github/pysindy/env/bin
/usr/lib/python37.zip
/usr/lib/python3.7
/usr/lib/python3.7/lib-dynload
/home/jmsh/github/pysindy/env/lib/python3.7/site-packages
/home/jmsh/github/derivative
/home/jmsh/github/pysindy
environment: HOME = /home/jmsh
command_line: /home/jmsh/github/pysindy/env/bin/coverage debug sys
sqlite3_version: 2.6.0
sqlite3_sqlite_version: 3.22.0
sqlite3_temp_store: 0
sqlite3_compile_options: COMPILER=gcc-7.5.0, ENABLE_COLUMN_METADATA, ENABLE_DBSTAT_VTAB,
ENABLE_FTS3, ENABLE_FTS3_PARENTHESIS, ENABLE_FTS3_TOKENIZER, ENABLE_FTS4,
ENABLE_FTS5, ENABLE_JSON1, ENABLE_LOAD_EXTENSION, ENABLE_PREUPDATE_HOOK,
ENABLE_RTREE, ENABLE_SESSION, ENABLE_STMTVTAB, ENABLE_UNLOCK_NOTIFY,
ENABLE_UPDATE_DELETE_LIMIT, HAVE_ISNAN, LIKE_DOESNT_MATCH_BLOBS,
MAX_SCHEMA_RETRY=25, MAX_VARIABLE_NUMBER=250000, OMIT_LOOKASIDE,
SECURE_DELETE, SOUNDEX, TEMP_STORE=1, THREADSAFE=1
Describe the bug
When a test uses
runpy.run_pathwith aPathargument (e.g. aPosixPath),coveragetries to treat it as a string, raising anAttributeError. Could be considered a feature request, but since error appears with builtin modules coverage aims to support (python~=3.6), it feels like a bug.To Reproduce
How can we reproduce the problem? Please be specific. Don't link to a failing CI job. Answer the questions below:
coverage debug sysis helpful. 6.4.1.`coverage debug sys`
pip freezeis helpful. No other packages used in example, but here'spip freeze:`pip freeze`
File 1 (debugme.py):
File 2 (debugme2.py)
Result:
Expected behavior
Execute without error
Additional context
Thanks for your help!