Skip to content

Commit 0e7fc3b

Browse files
authored
tests: fix django_testdir.runpytest_subprocess (#630)
1 parent be42484 commit 0e7fc3b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/conftest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,9 +128,9 @@ def create_app_file(code, filename):
128128
# Monkeypatch runpytest_subprocess to include --strict always.
129129
orig = testdir.runpytest_subprocess
130130

131-
def runpytest_subprocess(self, *args, **kwargs):
131+
def runpytest_subprocess(*args, **kwargs):
132132
args = ('--strict',) + args
133-
return orig(self, *args, **kwargs)
133+
return orig(*args, **kwargs)
134134
testdir.runpytest_subprocess = runpytest_subprocess
135135

136136
return testdir

0 commit comments

Comments
 (0)