# HG changeset patch # User Matt Harbison # Date 2018-08-22 02:34:32 # Node ID 659f010ffa7e123c2d4d55c334011b4cf81f5dc9 # Parent aec7109aeb397c744e8f934567f577cc7f04dba9 test-fastannotate: close fd before unlinking to keep Windows happy diff --git a/tests/test-fastannotate-revmap.py b/tests/test-fastannotate-revmap.py --- a/tests/test-fastannotate-revmap.py +++ b/tests/test-fastannotate-revmap.py @@ -11,8 +11,8 @@ def genhsh(i): def gettemppath(): fd, path = tempfile.mkstemp() + os.close(fd) os.unlink(path) - os.close(fd) return path def ensure(condition):