diff --git a/tests/test_graphml.py b/tests/test_graphml.py index d2a7c0c0b..6b9d7fa0a 100644 --- a/tests/test_graphml.py +++ b/tests/test_graphml.py @@ -105,12 +105,11 @@ def test_gzipped(self): ## Test reading a graphmlz with tempfile.NamedTemporaryFile("w+b") as fd: - #fd.write(graph_xml) fd.flush() - newname = fd.name+".gz" + newname = fd.name + ".gz" with gzip.open(newname, "wt") as wf: wf.write(graph_xml) - + graphml = rustworkx.read_graphml(newname) graph = graphml[0] nodes = [ @@ -129,11 +128,11 @@ def test_gzipped_force(self): ## Test reading a graphmlz with tempfile.NamedTemporaryFile("w+b") as fd: - #fd.write(graph_xml) + # fd.write(graph_xml) fd.flush() with gzip.open(fd.name, "wt") as wf: wf.write(graph_xml) - + graphml = rustworkx.read_graphml(fd.name, compression="gzip") graph = graphml[0] nodes = [