@@ -1943,22 +1943,7 @@ def write(self, s):
19431943 self .assertEqual (out , b"" )
19441944 self .assertEqual (err , b"" )
19451945
1946-
1947- def _supports_remote_attaching ():
1948- PROCESS_VM_READV_SUPPORTED = False
1949-
1950- try :
1951- from _remote_debugging import PROCESS_VM_READV_SUPPORTED
1952- except ImportError :
1953- pass
1954-
1955- return PROCESS_VM_READV_SUPPORTED
1956-
1957- @unittest .skipIf (not sys .is_remote_debug_enabled (), "Remote debugging is not enabled" )
1958- @unittest .skipIf (sys .platform != "darwin" and sys .platform != "linux" and sys .platform != "win32" ,
1959- "Test only runs on Linux, Windows and MacOS" )
1960- @unittest .skipIf (sys .platform == "linux" and not _supports_remote_attaching (),
1961- "Test only runs on Linux with process_vm_readv support" )
1946+ @test .support .support_remote_exec_only
19621947@test .support .cpython_only
19631948class TestRemoteExec (unittest .TestCase ):
19641949 def tearDown (self ):
@@ -2117,7 +2102,7 @@ def audit_hook(event, arg):
21172102 returncode , stdout , stderr = self ._run_remote_exec_test (script , prologue = prologue )
21182103 self .assertEqual (returncode , 0 )
21192104 self .assertIn (b"Remote script executed successfully!" , stdout )
2120- self .assertIn (b"Audit event: remote_debugger_script, arg: " , stdout )
2105+ self .assertIn (b"Audit event: cpython. remote_debugger_script, arg: " , stdout )
21212106 self .assertEqual (stderr , b"" )
21222107
21232108 def test_remote_exec_with_exception (self ):
0 commit comments