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 2222 python : 3.7
2323 env : TOXENV=py37-dj21-sqlite-coverage
2424 - python : 3.7
25- env : TOXENV=py37-dj22-sqlite-coverage
25+ env : TOXENV=py37-dj22-sqlite-xdist- coverage
2626
2727 # Explicitly test (older) pytest 4.1.
2828 - python : 3.7
Original file line number Diff line number Diff line change @@ -278,7 +278,10 @@ def test_a():
278278
279279 assert conn_default.vendor == 'sqlite'
280280 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):
282285 assert 'file:memorydb' in db_name
283286 else:
284287 assert db_name == ":memory:"
You can’t perform that action at this time.
0 commit comments