Skip to content

Commit

Permalink
Issue #6: Added a prefix to temporary filenames in tests
Browse files Browse the repository at this point in the history
This makes it easier to trace stale temporary files to the culprit.
  • Loading branch information
Antti Kaihola committed Jun 1, 2016
1 parent d9b2e0e commit 40fd28c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/zc/lockfile/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ class LockFileLogEntryTestCase(unittest.TestCase):
"""Tests for logging in case of lock failure"""
def setUp(self):
self.here = os.getcwd()
self.tmp = tempfile.mkdtemp()
self.tmp = tempfile.mkdtemp(prefix='zc.lockfile-test-')
os.chdir(self.tmp)

def tearDown(self):
Expand Down

0 comments on commit 40fd28c

Please sign in to comment.