summaryrefslogtreecommitdiff
path: root/networkx
diff options
context:
space:
mode:
authorJarrod Millman <jarrod.millman@gmail.com>2022-08-11 17:36:25 -0700
committerJarrod Millman <jarrod.millman@gmail.com>2022-08-21 09:51:16 -0700
commiteb603877688b0f74889274a6c70cf33f3dfa2a0b (patch)
tree28406dd9a15ebcfc7645333c0693805c20148b9a /networkx
parent739a20725750b518b081eaa7441abaee7b21c3fd (diff)
downloadnetworkx-eb603877688b0f74889274a6c70cf33f3dfa2a0b.tar.gz
Remove old Appveyor cruft (#5924)
* Remove old Appveyor cruft * Fix Windows issue
Diffstat (limited to 'networkx')
-rw-r--r--networkx/conftest.py4
-rw-r--r--networkx/readwrite/graph6.py4
-rw-r--r--networkx/readwrite/sparse6.py4
3 files changed, 4 insertions, 8 deletions
diff --git a/networkx/conftest.py b/networkx/conftest.py
index bfed3215..20e32e07 100644
--- a/networkx/conftest.py
+++ b/networkx/conftest.py
@@ -387,7 +387,3 @@ if not has_ogr:
collect_ignore += needs_ogr
if not has_sympy:
collect_ignore += needs_sympy
-
-# FIXME: This is to avoid errors on AppVeyor
-if sys.platform.startswith("win"):
- collect_ignore += ["readwrite/graph6.py", "readwrite/sparse6.py"]
diff --git a/networkx/readwrite/graph6.py b/networkx/readwrite/graph6.py
index cb579ecd..140d9fa2 100644
--- a/networkx/readwrite/graph6.py
+++ b/networkx/readwrite/graph6.py
@@ -206,7 +206,7 @@ def read_graph6(path):
You can read a graph6 file by giving the path to the file::
>>> import tempfile
- >>> with tempfile.NamedTemporaryFile() as f:
+ >>> with tempfile.NamedTemporaryFile(delete=False) as f:
... _ = f.write(b">>graph6<<A_\\n")
... _ = f.seek(0)
... G = nx.read_graph6(f.name)
@@ -279,7 +279,7 @@ def write_graph6(G, path, nodes=None, header=True):
You can write a graph6 file by giving the path to a file::
>>> import tempfile
- >>> with tempfile.NamedTemporaryFile() as f:
+ >>> with tempfile.NamedTemporaryFile(delete=False) as f:
... nx.write_graph6(nx.path_graph(2), f.name)
... _ = f.seek(0)
... print(f.read())
diff --git a/networkx/readwrite/sparse6.py b/networkx/readwrite/sparse6.py
index e7c36383..beae8acb 100644
--- a/networkx/readwrite/sparse6.py
+++ b/networkx/readwrite/sparse6.py
@@ -272,7 +272,7 @@ def read_sparse6(path):
You can read a sparse6 file by giving the path to the file::
>>> import tempfile
- >>> with tempfile.NamedTemporaryFile() as f:
+ >>> with tempfile.NamedTemporaryFile(delete=False) as f:
... _ = f.write(b">>sparse6<<:An\\n")
... _ = f.seek(0)
... G = nx.read_sparse6(f.name)
@@ -340,7 +340,7 @@ def write_sparse6(G, path, nodes=None, header=True):
You can write a sparse6 file by giving the path to the file::
>>> import tempfile
- >>> with tempfile.NamedTemporaryFile() as f:
+ >>> with tempfile.NamedTemporaryFile(delete=False) as f:
... nx.write_sparse6(nx.path_graph(2), f.name)
... print(f.read())
b'>>sparse6<<:An\\n'