diff tests/test-fastannotate-revmap.py @ 39250:659f010ffa7e

test-fastannotate: close fd before unlinking to keep Windows happy
author Matt Harbison <matt_harbison@yahoo.com>
date Tue, 21 Aug 2018 22:34:32 -0400
parents 1ddb296e0dee
children aa95fd0257df
line wrap: on
line diff
--- 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):