Skip to content

Commit 4e84aa6

Browse files
committed
chore: pass realpath
1 parent 59c63e9 commit 4e84aa6

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

src/pytest_codspeed/instruments/hooks/__init__.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -243,8 +243,10 @@ def _callgrind_skip_python_runtime(self) -> None:
243243
),
244244
None,
245245
)
246-
print(f"Identified libpython for callgrind skipping: {libpython}")
247246
if libpython:
247+
libpython = os.path.realpath(libpython)
248+
print(f"Identified libpython for callgrind skipping: {libpython}")
248249
self._module.callgrind_add_obj_skip(libpython.encode())
249-
print(f"Skipping Python executable in callgrind: {sys.executable}")
250-
self._module.callgrind_add_obj_skip(sys.executable.encode())
250+
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

Comments
 (0)