mirror of
https://github.com/onionshare/onionshare.git
synced 2025-09-19 12:04:42 -04:00
Fix one more tempfile Windows test bug
This commit is contained in:
parent
283554a655
commit
15f7d19670
1 changed files with 3 additions and 1 deletions
|
@ -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.write(r.content)
|
||||||
|
tmp_file.close()
|
||||||
|
|
||||||
with open(tmp_file.name, "r") as f:
|
with open(tmp_file.name, "r") as f:
|
||||||
self.assertEqual("onionshare", f.read())
|
self.assertEqual("onionshare", f.read())
|
||||||
|
os.remove(tmp_file.name)
|
||||||
|
|
||||||
QtTest.QTest.qWait(500)
|
QtTest.QTest.qWait(500)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue