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:
3232 - " python -m pip install --upgrade pip wheel setuptools tox"
3333
3434test_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):
226226@pytest .fixture
227227def pr_none ():
228228 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
230231 if sys .platform .startswith ('win' ):
231232 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 )
233244 pr = cu .ProcReader (proc , None , None )
234245 return pr
235246
You can’t perform that action at this time.
0 commit comments