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