File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 22
22
python : 3.7
23
23
env : TOXENV=py37-dj21-sqlite-coverage
24
24
- python : 3.7
25
- env : TOXENV=py37-dj22-sqlite-coverage
25
+ env : TOXENV=py37-dj22-sqlite-xdist- coverage
26
26
27
27
# Explicitly test (older) pytest 4.1.
28
28
- python : 3.7
Original file line number Diff line number Diff line change @@ -278,7 +278,10 @@ def test_a():
278
278
279
279
assert conn_default.vendor == 'sqlite'
280
280
db_name = conn_default.creation._get_test_db_name()
281
- if conn_default.features.can_share_in_memory_db:
281
+
282
+ # can_share_in_memory_db was removed in Django 2.1, and
283
+ # used in _get_test_db_name before.
284
+ if getattr(conn_default.features, "can_share_in_memory_db", True):
282
285
assert 'file:memorydb' in db_name
283
286
else:
284
287
assert db_name == ":memory:"
You can’t perform that action at this time.
0 commit comments