Skip to content

Commit 85b53d4

Browse files
committed
TST: make sqlite tests pass when repo is on networked drive
(could be a problem for windows, or other systems without writable /tmp directory
1 parent 3184db2 commit 85b53d4

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

pymc3/tests/test_sqlite_backend.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,52 +5,52 @@
55

66
class TestSQlite0dSampling(bf.SamplingTestCase):
77
backend = sqlite.SQLite
8-
name = 'test.db'
8+
name = '/tmp/test.db'
99
shape = ()
1010

1111

1212
class TestSQlite1dSampling(bf.SamplingTestCase):
1313
backend = sqlite.SQLite
14-
name = 'test.db'
14+
name = '/tmp/test.db'
1515
shape = 2
1616

1717

1818
class TestSQlite2dSampling(bf.SamplingTestCase):
1919
backend = sqlite.SQLite
20-
name = 'test.db'
20+
name = '/tmp/test.db'
2121
shape = (2, 3)
2222

2323

2424
class TestSQLite0dSelection(bf.SelectionNoSliceTestCase):
2525
backend = sqlite.SQLite
26-
name = 'test.db'
26+
name = '/tmp/test.db'
2727
shape = ()
2828

2929

3030
class TestSQLite1dSelection(bf.SelectionNoSliceTestCase):
3131
backend = sqlite.SQLite
32-
name = 'test.db'
32+
name = '/tmp/test.db'
3333
shape = 2
3434

3535

3636
class TestSQLite2dSelection(bf.SelectionNoSliceTestCase):
3737
backend = sqlite.SQLite
38-
name = 'test.db'
38+
name = '/tmp/test.db'
3939
shape = (2, 3)
4040

4141

4242
class TestSQLiteDumpLoad(bf.DumpLoadTestCase):
4343
backend = sqlite.SQLite
4444
load_func = staticmethod(sqlite.load)
45-
name = 'test.db'
45+
name = '/tmp/test.db'
4646
shape = (2, 3)
4747

4848

4949
class TestNDArraySqliteEquality(bf.BackendEqualityTestCase):
5050
backend0 = ndarray.NDArray
5151
name0 = None
5252
backend1 = sqlite.SQLite
53-
name1 = 'test.db'
53+
name1 = '/tmp/test.db'
5454
shape = (2, 3)
5555

5656

0 commit comments

Comments
 (0)