From 545fa74c8709dddbd33942fa753c26aee2886091 Mon Sep 17 00:00:00 2001 From: Tian Gao Date: Sat, 26 Apr 2025 11:48:52 -0400 Subject: [PATCH] Add subprocess check for remote pdb test --- Lib/test/test_remote_pdb.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Lib/test/test_remote_pdb.py b/Lib/test/test_remote_pdb.py index b7c4a8b1444280..2c4a17abd82544 100644 --- a/Lib/test/test_remote_pdb.py +++ b/Lib/test/test_remote_pdb.py @@ -13,7 +13,7 @@ import unittest.mock from contextlib import contextmanager from pathlib import Path -from test.support import is_wasi, os_helper, SHORT_TIMEOUT +from test.support import is_wasi, os_helper, requires_subprocess, SHORT_TIMEOUT from test.support.os_helper import temp_dir, TESTFN, unlink from typing import Dict, List, Optional, Tuple, Union, Any @@ -257,6 +257,7 @@ def side_effect(line): self.assertEqual(len(prompts), 2) # Should have sent 2 prompts +@requires_subprocess() @unittest.skipIf(is_wasi, "WASI does not support TCP sockets") class PdbConnectTestCase(unittest.TestCase): """Tests for the _connect mechanism using direct socket communication."""