Permalink
Browse files

Use system temp for SQLite index files

  • Loading branch information...
peterjc committed Apr 10, 2013
1 parent 4e7ab5b commit fbf21acfe26f595dffbad3d3f2f5e5ee34ffa86b
Showing with 2 additions and 2 deletions.
  1. +2 −2 Tests/test_SeqIO_index.py
@@ -96,8 +96,8 @@ def test_old_files_wrong2(self):
class IndexDictTests(unittest.TestCase):
"""Cunning unit test where methods are added at run time."""
def setUp(self):
- self.index_tmp = tempfile.gettempprefix() + ".idx.tmp"
- self.assertFalse(os.path.isfile(self.index_tmp), self.index_tmp)
+ h, self.index_tmp = tempfile.mkstemp("_idx.tmp")
+ os.close(h)
def tearDown(self):
if os.path.isfile(self.index_tmp):

0 comments on commit fbf21ac

Please sign in to comment.