Skip to content

Commit

Permalink
handle tempfile os independent
Browse files Browse the repository at this point in the history
  • Loading branch information
WolfgangFahl committed Jun 10, 2023
1 parent 4f7b5c7 commit c8babe9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_004_io.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import os
from tests.base_gremlin_test import BaseGremlinTest
import tempfile
class TestIo(BaseGremlinTest):
"""
test Io handling
Expand All @@ -24,7 +25,7 @@ def test_loadGraph(self):
# test saving a graph
def test_saveGraph(self):
g=self.g
graphmlPath="/tmp/A-Fish-Named-Wanda.xml"
graphmlPath = os.path.join(tempfile.mkdtemp(), 'A-Fish-Named-Wanda.xml')
# drop the existing content of the graph
g.V().drop().iterate()
g.addV("Fish").property("name","Wanda").iterate()
Expand Down

0 comments on commit c8babe9

Please sign in to comment.