File tree Expand file tree Collapse file tree 1 file changed +3
-15
lines changed Expand file tree Collapse file tree 1 file changed +3
-15
lines changed Original file line number Diff line number Diff line change 5
5
import os
6
6
import sys
7
7
from contextlib import contextmanager
8
- from io import BytesIO
8
+ from io import StringIO
9
9
10
10
import pytest
11
11
12
- from contextlib import contextmanager
13
-
14
12
from . import live_server_helper
15
13
16
14
from .django_compat import is_django_unittest
@@ -122,9 +120,9 @@ def run_checks(request):
122
120
return
123
121
run_checks .ran = True
124
122
125
- out = BytesIO ()
123
+ out = StringIO ()
126
124
try :
127
- call_command ('check' , out = out , err = out )
125
+ call_command ('check' , stdout = out , stderr = out )
128
126
except SystemCheckError as ex :
129
127
run_checks .exc = ex
130
128
@@ -140,16 +138,6 @@ def run_checks(request):
140
138
request .session .shouldstop = True
141
139
142
140
143
- @contextmanager
144
- def disable_input_capture (request ):
145
- capmanager = request .config .pluginmanager .getplugin ('capturemanager' )
146
- capmanager .suspendcapture ()
147
- try :
148
- yield
149
- finally :
150
- capmanager .resumecapture ()
151
-
152
-
153
141
def _django_db_fixture_helper (transactional , request , django_db_blocker ):
154
142
if is_django_unittest (request ):
155
143
return
You can’t perform that action at this time.
0 commit comments