Skip to content

Commit 2fcb502

Browse files
committed
Update code
Signed-off-by: Manjusaka <[email protected]>
1 parent 914f8a1 commit 2fcb502

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

Lib/test/support/__init__.py

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3080,14 +3080,17 @@ def _supports_remote_attaching():
30803080

30813081
return PROCESS_VM_READV_SUPPORTED
30823082

3083-
def support_remote_exec_only(test):
3083+
def _support_remote_exec_only_impl(test):
30843084
if not sys.is_remote_debug_enabled():
3085-
return unittest.skip("Remote debugging is not enabled")(test)
3085+
return unittest.skip("Remote debugging is not enabled")
30863086
if sys.platform not in ("darwin", "linux", "win32"):
3087-
return unittest.skip("Test only runs on Linux, Windows and macOS")(test)
3087+
return unittest.skip("Test only runs on Linux, Windows and macOS")
30883088
if sys.platform == "linux" and not _supports_remote_attaching():
3089-
return unittest.skip("Test only runs on Linux with process_vm_readv support")(test)
3090-
return _id(test)
3089+
return unittest.skip("Test only runs on Linux with process_vm_readv support")
3090+
return _id
3091+
3092+
def support_remote_exec_only(test):
3093+
return _support_remote_exec_only_impl(test)
30913094

30923095
class EqualToForwardRef:
30933096
"""Helper to ease use of annotationlib.ForwardRef in tests.

0 commit comments

Comments
 (0)