File tree Expand file tree Collapse file tree 2 files changed +14
-3
lines changed Expand file tree Collapse file tree 2 files changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -32,4 +32,4 @@ install:
32
32
- " python -m pip install --upgrade pip wheel setuptools tox"
33
33
34
34
test_script :
35
- - " echo y | tox -e %TOXENV%"
35
+ - " tox -e %TOXENV%"
Original file line number Diff line number Diff line change @@ -226,10 +226,21 @@ def test_stdsim_line_buffering(base_app):
226
226
@pytest .fixture
227
227
def pr_none ():
228
228
import subprocess
229
- command = 'ls'
229
+
230
+ # Put the new process into a separate group so signals sent to it won't interfere with this process
230
231
if sys .platform .startswith ('win' ):
231
232
command = 'dir'
232
- proc = subprocess .Popen ([command ], shell = True )
233
+ creationflags = subprocess .CREATE_NEW_PROCESS_GROUP
234
+ start_new_session = False
235
+ else :
236
+ command = 'ls'
237
+ creationflags = 0
238
+ start_new_session = True
239
+
240
+ proc = subprocess .Popen ([command ],
241
+ creationflags = creationflags ,
242
+ start_new_session = start_new_session ,
243
+ shell = True )
233
244
pr = cu .ProcReader (proc , None , None )
234
245
return pr
235
246
You can’t perform that action at this time.
0 commit comments