Skip to content

Commit ed8eaac

Browse files
author
Vasileios Karakasis
committed
Revert "Use relative paths for filenames in deprecation warnings"
This reverts commit 6bd1ec9.
1 parent 6bd1ec9 commit ed8eaac

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

reframe/core/warnings.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import contextlib
22
import inspect
3-
import os
43
import warnings
54

65
from reframe.core.exceptions import ReframeFatalError
@@ -31,8 +30,6 @@ def _format_warning(message, category, filename, lineno, line=None):
3130
except IndexError:
3231
line = '<no line information>'
3332

34-
# Use a relative path
35-
filename = os.path.relpath(filename)
3633
message = f'{filename}:{lineno}: WARNING: {message}\n{line}\n'
3734

3835
# Ignore coloring if runtime has not been initialized; this can happen

0 commit comments

Comments
 (0)