File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -61,6 +61,13 @@ def __init__(
6161 dynamic_contexts : bool ,
6262 metacov : bool ,
6363 ) -> None :
64+ # print("core.py!!!")
65+ # print(f"sys.path = {newline}{newline.join(sys.path)}")
66+ # print(f"{CTRACER_FILE = }")
67+ # import inspect
68+ #
69+ # print("\n".join("%30s : %s:%d" % (t[3], t[1], t[2]) for t in inspect.stack()[99:0:-1]))
70+
6471 # Check the conditions that preclude us from using sys.monitoring.
6572 reason_no_sysmon = ""
6673 if not env .PYBEHAVIOR .pep669 :
@@ -75,9 +82,11 @@ def __init__(
7582 core_name : str | None = None
7683 if config .timid :
7784 core_name = "pytrace"
85+ # print("core.py: Using pytrace because timid=True")
7886 elif core_name is None :
7987 # This could still leave core_name as None.
8088 core_name = config .core
89+ # print(f"core.py: core from config is {core_name!r}")
8190
8291 if core_name == "sysmon" and reason_no_sysmon :
8392 raise ConfigError (
@@ -87,14 +96,17 @@ def __init__(
8796 if core_name is None :
8897 if env .SYSMON_DEFAULT and not reason_no_sysmon :
8998 core_name = "sysmon"
99+ # print("core.py: Using sysmon because SYSMON_DEFAULT is set")
90100 else :
91101 core_name = "ctrace"
102+ # print("core.py: Defaulting to ctrace core")
92103
93104 if core_name == "ctrace" :
94105 if not CTRACER_FILE :
95106 if IMPORT_ERROR and env .SHIPPING_WHEELS :
96107 warn (f"Couldn't import C tracer: { IMPORT_ERROR } " , slug = "no-ctracer" , once = True )
97108 core_name = "pytrace"
109+ # print("core.py: Falling back to pytrace because C tracer not available")
98110
99111 self .tracer_kwargs = {}
100112
Original file line number Diff line number Diff line change @@ -207,6 +207,7 @@ def run_tests_with_coverage(core, *runner_args):
207207 cov ._warn_unimported_source = False
208208 cov ._warn_preimported_source = False
209209 cov ._metacov = True
210+ # print(f"igor start()")
210211 cov .start ()
211212
212213 try :
You can’t perform that action at this time.
0 commit comments