Skip to content

Commit cd3fb79

Browse files
committed
Rename to skip_on_low_desktop_heap_memory_subprocess()
1 parent 8aedb12 commit cd3fb79

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

Lib/test/support/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3321,7 +3321,7 @@ def control_characters_c0() -> list[str]:
33213321

33223322

33233323
STATUS_DLL_INIT_FAILED = 0xC0000142
3324-
def skip_on_low_heap_memory_subprocess(returncode):
3324+
def skip_on_low_desktop_heap_memory_subprocess(returncode):
33253325
if sys.platform not in ('win32', 'cygwin'):
33263326
return
33273327
# On Windows, STATUS_DLL_INIT_FAILED is a generic error code that could

Lib/test/test_cmd_line.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1036,7 +1036,7 @@ def test_python_legacy_windows_stdio(self):
10361036
p = subprocess.run([sys.executable, "-c", code],
10371037
creationflags=subprocess.CREATE_NEW_CONSOLE,
10381038
env=env)
1039-
support.skip_on_low_heap_memory_subprocess(p.returncode)
1039+
support.skip_on_low_desktop_heap_memory_subprocess(p.returncode)
10401040
self.assertEqual(p.returncode, 0)
10411041

10421042
# Then test that FIleIO is used when PYTHONLEGACYWINDOWSSTDIO is set.
@@ -1045,7 +1045,7 @@ def test_python_legacy_windows_stdio(self):
10451045
p = subprocess.run([sys.executable, "-c", code],
10461046
creationflags=subprocess.CREATE_NEW_CONSOLE,
10471047
env=env)
1048-
support.skip_on_low_heap_memory_subprocess(p.returncode)
1048+
support.skip_on_low_desktop_heap_memory_subprocess(p.returncode)
10491049
self.assertEqual(p.returncode, 0)
10501050

10511051
@unittest.skipIf("-fsanitize" in sysconfig.get_config_vars().get('PY_CFLAGS', ()),

Lib/test/test_msvcrt.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def run_in_separated_process(self, code):
7171
subprocess.run(cmd, check=True, capture_output=True,
7272
creationflags=subprocess.CREATE_NEW_CONSOLE)
7373
except subprocess.CalledProcessError as exc:
74-
support.skip_on_low_heap_memory_subprocess(exc.returncode)
74+
support.skip_on_low_desktop_heap_memory_subprocess(exc.returncode)
7575
raise
7676

7777
def test_kbhit(self):

Lib/test/test_subprocess.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3772,7 +3772,7 @@ def test_creationflags(self):
37723772
rc = subprocess.call(sys.executable +
37733773
' -c "import time; time.sleep(0.25)"',
37743774
creationflags=CREATE_NEW_CONSOLE)
3775-
support.skip_on_low_heap_memory_subprocess(rc)
3775+
support.skip_on_low_desktop_heap_memory_subprocess(rc)
37763776
self.assertEqual(rc, 0)
37773777

37783778
def test_invalid_args(self):

0 commit comments

Comments
 (0)