changeset 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 aec7109aeb39
children bb2b462f81da
files tests/test-fastannotate-revmap.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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):