Add code coverage for tests (excluding ptvsd.server and pydevd).

Fix some issues on Python 2.7.

Remove dead code.
This commit is contained in:
Pavel Minaev 2019-09-18 20:05:47 -07:00 committed by Pavel Minaev
parent b7c48cc9fe
commit 0825dbeb37
12 changed files with 59 additions and 63 deletions

View file

@ -279,6 +279,7 @@ class Launch(DebugStartBase):
cwd = request("cwd", ".")
env = os.environ.copy()
env.pop("COV_CORE_SOURCE", None) # disable codecov subprocess hook
env.update(request("env", json.object(unicode)))
if sys.version_info < (3,):
@ -346,6 +347,7 @@ class AttachBase(DebugStartBase):
target_str = target.strpath
env = os.environ.copy()
env.pop("COV_CORE_SOURCE", None) # disable codecov subprocess hook
env.update(kwargs["env"])
cli_args = kwargs.get("cli_args")