mirror of
https://github.com/microsoft/debugpy.git
synced 2025-12-23 08:48:12 +00:00
Fix -Xfrozen_modules use in tests.
This commit is contained in:
parent
119ca8e589
commit
88bf2c7827
2 changed files with 6 additions and 10 deletions
|
|
@ -350,13 +350,9 @@ class Session(object):
|
|||
env.pop("COV_CORE_SOURCE", None)
|
||||
|
||||
return env
|
||||
|
||||
|
||||
def _make_python_cmdline(self, exe, *args):
|
||||
cmd = [exe]
|
||||
if sys.version_info[:2] >= (3, 11):
|
||||
cmd += ["-X", "frozen_modules=off"]
|
||||
cmd += [str(s.strpath if isinstance(s, py.path.local) else s) for s in args]
|
||||
return cmd
|
||||
return [str(s.strpath if isinstance(s, py.path.local) else s) for s in [exe, *args]]
|
||||
|
||||
def spawn_debuggee(self, args, cwd=None, exe=sys.executable, setup=None):
|
||||
assert self.debuggee is None
|
||||
|
|
|
|||
8
tox.ini
8
tox.ini
|
|
@ -7,7 +7,7 @@ passenv = DEBUGPY_LOG_DIR,DEBUGPY_TESTS_FULL
|
|||
setenv =
|
||||
DEBUGPY_TEST=1
|
||||
commands =
|
||||
!py312-!cov: python -m pytest {posargs}
|
||||
!py312-cov: python -m pytest --cov --cov-append --cov-config=.coveragerc {posargs}
|
||||
py312-!cov: python -Xfrozen_modules=off -m pytest {posargs}
|
||||
py312-cov: python -Xfrozen_modules=off -m pytest --cov --cov-append --cov-config=.coveragerc {posargs}
|
||||
py{37,38,39}-!cov: python -m pytest {posargs}
|
||||
py{37,38,39}-cov: python -m pytest --cov --cov-append --cov-config=.coveragerc {posargs}
|
||||
py{310,311,312}-!cov: python -Xfrozen_modules=off -m pytest {posargs}
|
||||
py{310,311,312}-cov: python -Xfrozen_modules=off -m pytest --cov --cov-append --cov-config=.coveragerc {posargs}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue