test-fastannotate: close fd before unlinking to keep Windows happy
authorMatt Harbison <matt_harbison@yahoo.com>
Tue, 21 Aug 2018 22:34:32 -0400
changeset 39278 659f010ffa7e
parent 39277 aec7109aeb39
child 39279 bb2b462f81da
test-fastannotate: close fd before unlinking to keep Windows happy
tests/test-fastannotate-revmap.py
--- a/tests/test-fastannotate-revmap.py	Tue Aug 21 21:43:44 2018 -0400
+++ b/tests/test-fastannotate-revmap.py	Tue Aug 21 22:34:32 2018 -0400
@@ -11,8 +11,8 @@
 
 def gettemppath():
     fd, path = tempfile.mkstemp()
+    os.close(fd)
     os.unlink(path)
-    os.close(fd)
     return path
 
 def ensure(condition):