Skip to content

Commit af5fa29

Browse files
committed
Revert "chore: pass realpath"
This reverts commit 4e84aa6.
1 parent 4cbca23 commit af5fa29

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

src/pytest_codspeed/instruments/hooks/__init__.py

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

0 commit comments

Comments
 (0)