Skip to content
This repository was archived by the owner on Feb 1, 2023. It is now read-only.

Commit 4ac4fa3

Browse files
committed
28671: resolve symbolic links in DOT_SAGE tests
1 parent 906b12b commit 4ac4fa3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/sage/misc/inline_fortran.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ def eval(self, x, globals=None, locals=None):
146146
Traceback (most recent call last):
147147
...
148148
RuntimeError: failed to compile Fortran code:...
149-
sage: os.getcwd() == os.path.normpath(DOT_SAGE)
149+
sage: os.getcwd() == os.path.realpath(DOT_SAGE)
150150
True
151151
"""
152152
if globals is None:

src/sage/misc/sage_ostools.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def restore_cwd(chdir=None):
6565
sage: from sage.misc.misc import SAGE_TMP
6666
sage: cwd = os.getcwd()
6767
sage: with restore_cwd(str(SAGE_TMP)):
68-
....: print(os.getcwd() == SAGE_TMP)
68+
....: print(os.getcwd() == os.path.realpath(SAGE_TMP))
6969
True
7070
sage: cwd == os.getcwd()
7171
True

0 commit comments

Comments
 (0)