From 939062fead6e1ccb2ff94d86ccdb12b45275e50e Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Fri, 25 Apr 2025 17:22:12 +0200 Subject: [PATCH] gh-132950: Skip test_remote_pdb if remote exec is disabled --- Lib/test/test_remote_pdb.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Lib/test/test_remote_pdb.py b/Lib/test/test_remote_pdb.py index a1bef2d49bc85b..8d2b584007ef41 100644 --- a/Lib/test/test_remote_pdb.py +++ b/Lib/test/test_remote_pdb.py @@ -21,6 +21,10 @@ 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."""