]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-132950: Skip test_remote_pdb if remote exec is disabled (#132951)
authorVictor Stinner <vstinner@python.org>
Fri, 25 Apr 2025 17:28:25 +0000 (19:28 +0200)
committerGitHub <noreply@github.com>
Fri, 25 Apr 2025 17:28:25 +0000 (17:28 +0000)
Lib/test/test_remote_pdb.py

index a1bef2d49bc85bafbfbe611acd354d7f83a5c33c..8d2b584007ef41d5d078c31157a7755bbe8d8437 100644 (file)
@@ -21,6 +21,10 @@ import pdb
 from pdb import _PdbServer, _PdbClient
 
 
+if not sys.is_remote_debug_enabled():
+    raise unittest.SkipTest('remote debugging is disabled')
+
+
 @contextmanager
 def kill_on_error(proc):
     """Context manager killing the subprocess if a Python exception is raised."""