@@ -69,17 +69,22 @@ def __init__(
6969 elif dynamic_contexts :
7070 reason_no_sysmon = "doesn't yet support dynamic contexts"
7171
72- # import contextlib # DELETE ME
73- # with open("/tmp/foo.out", "a") as f:
74- # with contextlib.redirect_stdout(f):
75- # print(f"== Core.__init__({metacov=})")
76- # print(f"{sys.argv = }")
77- # print(f"{sys.orig_argv = }")
78- # from coverage.debug import short_stack
79- # print(short_stack(full=True))
80- # for name, val in os.environ.items():
81- # if name.startswith(("COV", "PY")):
82- # print(f"{os.getpid()}: {name} = {val!r}")
72+ import contextlib # DELETE ME
73+ with open ("/tmp/foo.out" , "a" ) as f :
74+ with contextlib .redirect_stdout (f ):
75+ print (f"== Core.__init__({ metacov = } )" )
76+ print (f"{ sys .argv = } " )
77+ print (f"{ sys .orig_argv = } " )
78+ import coverage
79+ cur = coverage .Coverage .current ()
80+ if cur is not None :
81+ print (f"{ cur ._collector } " )
82+ print (f"{ cur ._collector ._collectors } " )
83+ from coverage .debug import short_stack
84+ print (short_stack (full = True ))
85+ for name , val in os .environ .items ():
86+ if name .startswith (("COV" , "PY" )):
87+ print (f"{ os .getpid ()} : { name } = { val !r} " )
8388
8489 core_name : str | None = None
8590 if config .timid :
0 commit comments