mirror of
https://github.com/onionshare/onionshare.git
synced 2025-03-25 23:18:13 -04:00
Fix one more tempfile Windows test bug
This commit is contained in:
parent
283554a655
commit
15f7d19670
@ -135,11 +135,13 @@ class TestShare(GuiBaseTest):
|
||||
),
|
||||
)
|
||||
|
||||
tmp_file = tempfile.NamedTemporaryFile("wb")
|
||||
tmp_file = tempfile.NamedTemporaryFile("wb", delete=False)
|
||||
tmp_file.write(r.content)
|
||||
tmp_file.close()
|
||||
|
||||
with open(tmp_file.name, "r") as f:
|
||||
self.assertEqual("onionshare", f.read())
|
||||
os.remove(tmp_file.name)
|
||||
|
||||
QtTest.QTest.qWait(500)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user