Skip to content

Commit

Permalink
Close file descriptor before trying to remove file - should fix test on
Browse files Browse the repository at this point in the history
windows.
  • Loading branch information
Chris AtLee committed Aug 18, 2010
1 parent 3f3edec commit 9866680
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions master/buildbot/test/unit/test_steps_transfer.py
Expand Up @@ -10,11 +10,11 @@

class TestFileUpload(unittest.TestCase):
def setUp(self):
self.fd, self.destfile = tempfile.mkstemp()
fd, self.destfile = tempfile.mkstemp()
os.close(fd)
os.unlink(self.destfile)

def tearDown(self):
os.close(self.fd)
os.unlink(self.destfile)

def testBasic(self):
Expand Down

0 comments on commit 9866680

Please sign in to comment.