sage.graphs: Do not use SAGE_TMP in doctests
mkoeppe opened this issue · 28 comments
(split out from #33213)
CC: @orlitzky @dcoudert @dimpase @fchapoton
Component: refactoring
Author: Michael Orlitzky
Branch/Commit: 976f0d6
Reviewer: David Coudert, Dima Pasechnik
Issue created by migration from https://trac.sagemath.org/ticket/33829
Author: Michael Orlitzky
Branch pushed to git repo; I updated commit sha1. New commits:
aaae768 | Trac #33213: replace SAGE_TMP in graph doctests. |
Reviewer: David Coudert
LGTM. All tests pass.
Merge failure on top of:
e2ebf44 Trac #33825: Use pytest-xdist to run pytest in parallel
b400962 Trac #33824: make gens and orbits of PermutationGroup immutable
af23627 Trac #33809: some pathlib in combinat and groups
955b5d9 Trac #33803: Fixes for the distributions sagemath-objects, sagemath-categories
3e6b41f Trac #33799: Replace SAGE_TMP in doctests of sage.misc.{persist,ostools}, sage.doctest, sage.repl
a3fd718 Trac #33797: sage.misc.temporary_file: Remove use of SAGE_TMP
2ca0530 Trac #33794: modules/fp_graded/morphism.py test failure
7037fba Trac #33793: sage.misc.cython: Replace use of SPYX_TMP by a new cached function in sage.misc.temporary_file
d115270 Trac #33787: Installation manual: Update section "system-wide install"
0ae5565 Trac #33782: ci-cygwin: Update python version
833f53d Trac #33779: Remove use of SAGE_TMP in sage.interfaces.latte
b376a8d Trac #33771: SSLContext needs an argument
df168c8 Trac #33763: Refactor src/sage/docs
9597eaf Trac #33748: make accessing coefficients of finite-field elements easier
f02236f Trac #33744: Compute bases/circuits in MatroidUnion
8943dc0 Trac #33743: Faster random tree generator
773ec37 Trac #33740: Add conda dev environment
5e65c16 Trac #33734: variety() for polynomial systems over ℚ using msolve
8e7dcca Trac #33733: allow to use flint for Stirling numbers
6f4efb0 Updated SageMath version to 9.7.beta0
merge was not clean: conflicts in src/sage/graphs/isgci.py
in isgci.py in the following block you use variable d but this variable is unknown (reported by pyflakes)
+ # Save a systemwide updated copy whenever possible
+ try:
+ z.extract(_XML_FILE, GRAPHS_DATA_DIR)
+ z.extract(_SMALLGRAPHS_FILE, GRAPHS_DATA_DIR)
+ except IOError:
+ z.extract(_XML_FILE, d)
+ z.extract(_SMALLGRAPHS_FILE, GRAPHS_DATA_DIR)pyflakes also complains about os that is imported but not used. This is a minor issue.
lgtm
Changed reviewer from David Coudert to David Coudert, Dima Pasechnik
something should still be done with the isgci.py routine from comment:10
it looks like the fallback SAGE_TMP location never worked because _parse_db doesn't try the fallback location, so maybe we should just delete the whole except IOError: block
I'm trying to replace what's inside the except by pass. We can of course go even further and get rid of try all together.
Branch pushed to git repo; I updated commit sha1. This was a forced push. New commits:
818410f | Trac #33213: replace SAGE_TMP in the isgci database download routine. |
71c9325 | Trac #33213: replace SAGE_TMP in GLPK graph backend doctests. |
08213fa | Trac #33213: replace SAGE_TMP in graph doctests. |
976f0d6 | remove crud after except, make it pass |
rebased over latest 9.7.beta2
it works
Changed branch from u/dimpase/sage_graphs__do_not_use_sage_tmp_in_doctests to 976f0d6