File tree Expand file tree Collapse file tree 4 files changed +4
-2
lines changed Expand file tree Collapse file tree 4 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 66 include :
77 - stage : baseline
88 python : 3.6
9- env : TOXENV=py36-dj20-postgres-coverage
9+ env : TOXENV=py36-dj20-postgres-xdist- coverage
1010 services :
1111 - postgresql
1212 - python : 3.6
Original file line number Diff line number Diff line change @@ -42,7 +42,6 @@ def read(fname):
4242 'testing' : [
4343 'Django' ,
4444 'django-configurations>=2.0' ,
45- 'pytest-xdist>=1.15' ,
4645 'six' ,
4746 ],
4847 },
Original file line number Diff line number Diff line change @@ -115,6 +115,7 @@ def test_a():
115115
116116
117117def test_xdist_with_reuse (django_testdir ):
118+ pytest .importorskip ("xdist" )
118119 skip_if_sqlite_in_memory ()
119120
120121 drop_database ("gw0" )
@@ -192,6 +193,7 @@ class TestSqliteWithXdist:
192193 }
193194
194195 def test_sqlite_in_memory_used (self , django_testdir ):
196+ pytest .importorskip ("xdist" )
195197
196198 django_testdir .create_test_module (
197199 """
Original file line number Diff line number Diff line change 2626 coverage: coverage-enable-subprocess
2727
2828 pytest41: pytest>=4.1,<4.2
29+ xdist: pytest-xdist>=1.15
2930
3031setenv =
3132 PYTHONPATH = {toxinidir}:{env:PYTHONPATH:}
You can’t perform that action at this time.
0 commit comments