diff options
author | Russell Keith-Magee <russell@keith-magee.com> | 2024-02-05 00:04:57 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-05 00:04:57 (GMT) |
commit | 391659b3da570bfa28fed5fbdb6f2d9c26ab3dd0 (patch) | |
tree | 19d4bd5693a55e06e3ab4a88826e284a1e9717ae /Lib/test/test_ftplib.py | |
parent | 15f6f048a6ecdf0f6f4fc076d013be3d110f8ed6 (diff) | |
download | cpython-391659b3da570bfa28fed5fbdb6f2d9c26ab3dd0.zip cpython-391659b3da570bfa28fed5fbdb6f2d9c26ab3dd0.tar.gz cpython-391659b3da570bfa28fed5fbdb6f2d9c26ab3dd0.tar.bz2 |
gh-114099: Add test exclusions to support running the test suite on iOS (#114889)
Add test annotations required to run the test suite on iOS (PEP 730).
The majority of the change involve annotating tests that use subprocess,
but are skipped on Emscripten/WASI for other reasons, and including
iOS/tvOS/watchOS under the same umbrella as macOS/darwin checks.
`is_apple` and `is_apple_mobile` test helpers have been added to
identify *any* Apple platform, and "any Apple platform except macOS",
respectively.
Diffstat (limited to 'Lib/test/test_ftplib.py')
-rw-r--r-- | Lib/test/test_ftplib.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_ftplib.py b/Lib/test/test_ftplib.py index 2f191ea..81115e9 100644 --- a/Lib/test/test_ftplib.py +++ b/Lib/test/test_ftplib.py @@ -18,6 +18,7 @@ except ImportError: from unittest import TestCase, skipUnless from test import support +from test.support import requires_subprocess from test.support import threading_helper from test.support import socket_helper from test.support import warnings_helper @@ -900,6 +901,7 @@ class TestIPv6Environment(TestCase): @skipUnless(ssl, "SSL not available") +@requires_subprocess() class TestTLS_FTPClassMixin(TestFTPClass): """Repeat TestFTPClass tests starting the TLS layer for both control and data connections first. @@ -916,6 +918,7 @@ class TestTLS_FTPClassMixin(TestFTPClass): @skipUnless(ssl, "SSL not available") +@requires_subprocess() class TestTLS_FTPClass(TestCase): """Specific TLS_FTP class tests.""" |