Permalink
Browse files

Use system temp for SQLite files

  • Loading branch information...
1 parent 943fffe commit 4e7ab5bdb4346af5baa0c5f53301ac5e21078ddf @peterjc peterjc committed Apr 10, 2013
Showing with 2 additions and 1 deletion.
  1. +2 −1 Tests/test_BioSQL_sqlite3.py
@@ -28,7 +28,8 @@
test_db_fname = tempfile.mkstemp(dir='/dev/shm')[1]
except OSError:
# We can't use /dev/shm
- test_db_fname = os.path.join(os.getcwd(), "BioSQL", "temp_sqlite.db")
+ h, test_db_fname = tempfile.mkstemp("_BioSQL.db")
+ os.close(h)
TESTDB = test_db_fname

0 comments on commit 4e7ab5b

Please sign in to comment.