Skip to content

Commit 37b4033

Browse files
committed
Skip some tests in pytest 2.8.0 because pytest-dev/pytest#1073
1 parent 99ee041 commit 37b4033

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/test_django_settings_module.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,8 @@ def test_ds_after_user_conftest(testdir, monkeypatch):
102102
assert result.ret == 0
103103

104104

105+
@pytest.mark.skipif(pytest.__version__ == '2.8.0',
106+
reason='https://github.com/pytest-dev/pytest/issues/1073')
105107
def test_ds_in_pytest_configure(testdir, monkeypatch):
106108
monkeypatch.delenv('DJANGO_SETTINGS_MODULE')
107109
pkg = testdir.mkpydir('tpkg')
@@ -176,6 +178,8 @@ def test_user_count():
176178
])
177179

178180

181+
@pytest.mark.skipif(pytest.__version__ == '2.8.0',
182+
reason='https://github.com/pytest-dev/pytest/issues/1073')
179183
def test_settings_in_hook(testdir, monkeypatch):
180184
monkeypatch.delenv('DJANGO_SETTINGS_MODULE')
181185
testdir.makeconftest("""
@@ -220,6 +224,8 @@ def test_settings():
220224
assert result.ret == 0
221225

222226

227+
@pytest.mark.skipif(pytest.__version__ == '2.8.0',
228+
reason='https://github.com/pytest-dev/pytest/issues/1073')
223229
def test_debug_false(testdir, monkeypatch):
224230
monkeypatch.delenv('DJANGO_SETTINGS_MODULE')
225231
testdir.makeconftest("""

0 commit comments

Comments
 (0)