Skip to content

Commit 43bc40b

Browse files
committed
fixup merge conflict
1 parent acd0d7e commit 43bc40b

2 files changed

Lines changed: 7 additions & 9 deletions

File tree

Lib/subprocess.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1631,7 +1631,6 @@ def _execute_child(self, args, executable, preexec_fn, close_fds,
16311631
unused_restore_signals,
16321632
unused_gid, unused_gids, unused_uid,
16331633
unused_umask,
1634-
unused_start_new_session,
16351634
unused_start_new_session, unused_process_group,
16361635
force_hide):
16371636
"""Execute program (MS Windows version)"""
@@ -2024,7 +2023,6 @@ def _execute_child(self, args, executable, preexec_fn, close_fds,
20242023
errread, errwrite,
20252024
restore_signals,
20262025
gid, gids, uid, umask,
2027-
start_new_session,
20282026
start_new_session, process_group,
20292027
unused_force_hide):
20302028
"""Execute program (POSIX version)"""

Lib/test/test_subprocess.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3818,10 +3818,14 @@ def spy(*args):
38183818
# CREATE_NEW_CONSOLE creates a "popup" window.
38193819
@support.requires_resource('gui')
38203820
def test_creationflags(self):
3821+
# creationflags argument
3822+
CREATE_NEW_CONSOLE = 16
38213823
sys.stderr.write(" a DOS box should flash briefly ...\n")
3822-
subprocess.call(sys.executable +
3823-
' -c "import time; time.sleep(0.25)"',
3824-
creationflags=subprocess.CREATE_NEW_CONSOLE)
3824+
rc = subprocess.call(sys.executable +
3825+
' -c "import time; time.sleep(0.25)"',
3826+
creationflags=CREATE_NEW_CONSOLE)
3827+
support.skip_on_low_desktop_heap_memory_subprocess(rc)
3828+
self.assertEqual(rc, 0)
38253829

38263830
def test_force_hide(self):
38273831
if ctypes:
@@ -3834,10 +3838,6 @@ def test_force_hide(self):
38343838
else:
38353839
script = 'import sys; sys.exit(0)'
38363840
rc = subprocess.call([sys.executable, '-c', script], force_hide=True)
3837-
rc = subprocess.call(sys.executable +
3838-
' -c "import time; time.sleep(0.25)"',
3839-
creationflags=CREATE_NEW_CONSOLE)
3840-
support.skip_on_low_desktop_heap_memory_subprocess(rc)
38413841
self.assertEqual(rc, 0)
38423842

38433843
def test_invalid_args(self):

0 commit comments

Comments
 (0)