X Tutup
Skip to content

Commit cca96f8

Browse files
committed
Removed tempfile because it seemed to be putting sqlite database files in locations where it didn't have write access.
git-svn-id: https://src.springframework.org/svn/se-springpython-py/trunk/springpython@441 ce8fead1-4192-4296-8608-a705134b927f
1 parent 499b8a3 commit cca96f8

File tree

3 files changed

+1
-4
lines changed

3 files changed

+1
-4
lines changed

src/springpython/config/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
import inspect
1818
import logging
1919
import re
20-
import tempfile
2120
import types
2221
from decorator import decorator
2322
from springpython.context import scope

test/springpythontest/databaseCoreTestCases.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
import logging
1717
import os
1818
import sys
19-
import tempfile
2019
import types
2120
import unittest
2221
from pmock import *

test/springpythontest/databaseTransactionTestCases.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
import logging
1717
import os
1818
import subprocess
19-
import tempfile
2019
import types
2120
import unittest
2221
from springpython.context import ApplicationContext
@@ -486,7 +485,7 @@ class SqliteTransactionTestCase(AbstractTransactionTestCase):
486485

487486
def __init__(self, methodName='runTest'):
488487
AbstractTransactionTestCase.__init__(self, methodName)
489-
self.db_filename = tempfile.gettempdir() + "/springpython.db"
488+
self.db_filename = "springpython.db"
490489

491490
def createTables(self):
492491
self.createdTables = True

0 commit comments

Comments
 (0)
X Tutup