Skip to content

Commit b450c69

Browse files
committed
Make sure temp dir for tablespace tests exists
1 parent 72a6070 commit b450c69

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/conftest.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import os
12
import tempfile
23
import uuid
34

@@ -35,6 +36,9 @@ def django_db_setup(django_db_setup, django_db_blocker):
3536
qn = connection.ops.quote_name
3637

3738
with tempfile.TemporaryDirectory() as temp_dir:
39+
if not os.path.exists(temp_dir):
40+
os.makedirs(temp_dir)
41+
3842
with connection.cursor() as cursor:
3943
cursor.execute(
4044
f"CREATE TABLESPACE {qn(custom_tablespace_name)} LOCATION %s",

0 commit comments

Comments
 (0)