]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-133006: Add subprocess check for remote pdb test (#133014)
authorTian Gao <gaogaotiantian@hotmail.com>
Sat, 26 Apr 2025 18:09:09 +0000 (11:09 -0700)
committerGitHub <noreply@github.com>
Sat, 26 Apr 2025 18:09:09 +0000 (19:09 +0100)
Lib/test/test_remote_pdb.py

index b7c4a8b14442805e60e0dd1d6bd938720ca81bac..2c4a17abd825448c5c4b67cdb124a997dc68b788 100644 (file)
@@ -13,7 +13,7 @@ import unittest
 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 @@ class RemotePdbTestCase(unittest.TestCase):
             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."""