There was an error while loading. Please reload this page.
1 parent 59c63e9 commit 4e84aa6Copy full SHA for 4e84aa6
1 file changed
src/pytest_codspeed/instruments/hooks/__init__.py
@@ -243,8 +243,10 @@ def _callgrind_skip_python_runtime(self) -> None:
243
),
244
None,
245
)
246
- print(f"Identified libpython for callgrind skipping: {libpython}")
247
if libpython:
+ libpython = os.path.realpath(libpython)
248
+ print(f"Identified libpython for callgrind skipping: {libpython}")
249
self._module.callgrind_add_obj_skip(libpython.encode())
- print(f"Skipping Python executable in callgrind: {sys.executable}")
250
- self._module.callgrind_add_obj_skip(sys.executable.encode())
+ executable = os.path.realpath(sys.executable)
251
+ print(f"Skipping Python executable in callgrind: {executable}")
252
+ self._module.callgrind_add_obj_skip(executable.encode())
0 commit comments