@@ -1943,22 +1943,7 @@ def write(self, s):
1943
1943
self .assertEqual (out , b"" )
1944
1944
self .assertEqual (err , b"" )
1945
1945
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
1962
1947
@test .support .cpython_only
1963
1948
class TestRemoteExec (unittest .TestCase ):
1964
1949
def tearDown (self ):
@@ -2117,7 +2102,7 @@ def audit_hook(event, arg):
2117
2102
returncode , stdout , stderr = self ._run_remote_exec_test (script , prologue = prologue )
2118
2103
self .assertEqual (returncode , 0 )
2119
2104
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 )
2121
2106
self .assertEqual (stderr , b"" )
2122
2107
2123
2108
def test_remote_exec_with_exception (self ):
0 commit comments