This repository was archived by the owner on Feb 1, 2023. It is now read-only.
Commit 437bbd8
Release Manager
Trac #28671: fix doctests when DOT_SAGE is symbolic link
If `DOT_SAGE` points to a symbolic link, the following 2 doctests fail,
as symbolic links are not resolved in these tests:
{{{
sage -t --long --warn-long 54.2 src/sage/misc/inline_fortran.py
**********************************************************************
File "src/sage/misc/inline_fortran.py", line 149, in sage.misc.inline_fo
rtran._import_module_from_path._import_module_from_path_impl
Failed example:
os.getcwd() == os.path.normpath(DOT_SAGE)
Expected:
True
Got:
False
**********************************************************************
sage -t --long --warn-long 54.2 src/sage/misc/sage_ostools.pyx
**********************************************************************
File "src/sage/misc/sage_ostools.pyx", line 67, in
sage.misc.sage_ostools.restore_cwd
Failed example:
with restore_cwd(str(SAGE_TMP)):
print(os.getcwd() == SAGE_TMP)
Expected:
True
Got:
False
}}}
URL: https://trac.sagemath.org/28671
Reported by: gh-mwageringel
Ticket author(s): Markus Wageringel
Reviewer(s): Michael OrlitzkyFile tree
4 files changed
+6
-6
lines changed- build/pkgs/configure
- src/sage/misc
4 files changed
+6
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
4 | | - | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
149 | | - | |
| 149 | + | |
150 | 150 | | |
151 | 151 | | |
152 | 152 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | | - | |
| 68 | + | |
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| |||
0 commit comments