Skip to content

Commit 0eb0e70

Browse files
gh-133006: Add subprocess check for remote pdb test (#133014)
1 parent 314f4b9 commit 0eb0e70

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Lib/test/test_remote_pdb.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
import unittest.mock
1414
from contextlib import contextmanager
1515
from pathlib import Path
16-
from test.support import is_wasi, os_helper, SHORT_TIMEOUT
16+
from test.support import is_wasi, os_helper, requires_subprocess, SHORT_TIMEOUT
1717
from test.support.os_helper import temp_dir, TESTFN, unlink
1818
from typing import Dict, List, Optional, Tuple, Union, Any
1919

@@ -257,6 +257,7 @@ def side_effect(line):
257257
self.assertEqual(len(prompts), 2) # Should have sent 2 prompts
258258

259259

260+
@requires_subprocess()
260261
@unittest.skipIf(is_wasi, "WASI does not support TCP sockets")
261262
class PdbConnectTestCase(unittest.TestCase):
262263
"""Tests for the _connect mechanism using direct socket communication."""

0 commit comments

Comments
 (0)