Skip to content

Commit

Permalink
stabailize test
Browse files Browse the repository at this point in the history
  • Loading branch information
pjbull committed Jan 25, 2023
1 parent dd087b2 commit 3c9fe99
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_cloudpath_file_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -360,10 +360,11 @@ def test_close_file_idempotent(rig):
# remove cache so we can be sure it can't be re-uploaded
p._local.unlink()

# raises because cache is missing if not idempotent
# would raise trying to upload missing cache if we weren't idempotent
f.close()

# re-open and ensure things work
sleep(1)
f = p.open("w")
f.write("hello again!")
f.close()
Expand Down

0 comments on commit 3c9fe99

Please sign in to comment.