Skip to content

Commit

Permalink
lint python
Browse files Browse the repository at this point in the history
  • Loading branch information
fabmazz committed Nov 15, 2024
1 parent 3050fad commit 768282a
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions tests/test_graphml.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand All @@ -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 = [
Expand Down

0 comments on commit 768282a

Please sign in to comment.