From 3f03d0a7890e987086042b42db346e47398ffed3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20K=C3=A4ufl?= Date: Sun, 2 Aug 2020 10:41:31 +0200 Subject: [PATCH] Fix compat with pytest 6 --- tests/test_manage_py_scan.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_manage_py_scan.py b/tests/test_manage_py_scan.py index 8a0f9aad..a11f87c2 100644 --- a/tests/test_manage_py_scan.py +++ b/tests/test_manage_py_scan.py @@ -116,7 +116,7 @@ def test_django_project_found_invalid_settings_version(django_testdir, monkeypat """Invalid DSM should not cause an error with --help or --version.""" monkeypatch.setenv("DJANGO_SETTINGS_MODULE", "DOES_NOT_EXIST") - result = django_testdir.runpytest_subprocess("django_project_root", "--version") + result = django_testdir.runpytest_subprocess("django_project_root", "--version", "--version") assert result.ret == 0 result.stderr.fnmatch_lines(["*This is pytest version*"])