From: Victor Stinner Date: Fri, 25 Apr 2025 17:28:25 +0000 (+0200) Subject: gh-132950: Skip test_remote_pdb if remote exec is disabled (#132951) X-Git-Tag: v3.14.0b1~281 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=947c4f19d969578242ccc454ecc4b04c51408b03;p=thirdparty%2FPython%2Fcpython.git gh-132950: Skip test_remote_pdb if remote exec is disabled (#132951) --- diff --git a/Lib/test/test_remote_pdb.py b/Lib/test/test_remote_pdb.py index a1bef2d49bc8..8d2b584007ef 100644 --- a/Lib/test/test_remote_pdb.py +++ b/Lib/test/test_remote_pdb.py @@ -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."""