We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3d45064 commit c73a43dCopy full SHA for c73a43d
tests/test_json.py
@@ -1521,8 +1521,8 @@ def test_set_path(client):
1521
1522
root = tempfile.mkdtemp()
1523
sub = tempfile.mkdtemp(dir=root)
1524
- jsonfile = tempfile.mktemp(suffix=".json", dir=sub)
1525
- nojsonfile = tempfile.mktemp(dir=root)
+ jsonfile = tempfile.mkstemp(suffix=".json", dir=sub)[1]
+ nojsonfile = tempfile.mkstemp(dir=root)[1]
1526
1527
with open(jsonfile, "w+") as fp:
1528
fp.write(json.dumps({"hello": "world"}))
0 commit comments