summaryrefslogtreecommitdiffstats
path: root/Lib/test/regrtest.py
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2002-12-04 03:26:57 (GMT)
committerTim Peters <tim.peters@gmail.com>2002-12-04 03:26:57 (GMT)
commitb4ee4eb3b308d55bd0d8d5a1abb2015950934c77 (patch)
tree38ed792399ecfdd3d04857ca7c90d63c63719485 /Lib/test/regrtest.py
parent6ee68d20b7b588e9b1438970b3d101fb04a8e65d (diff)
downloadcpython-b4ee4eb3b308d55bd0d8d5a1abb2015950934c77.zip
cpython-b4ee4eb3b308d55bd0d8d5a1abb2015950934c77.tar.gz
cpython-b4ee4eb3b308d55bd0d8d5a1abb2015950934c77.tar.bz2
Rearrange test_socket_ssl so that a skip is expected iff the network
resource isn't enabled or the socket module doesn't support ssl.
Diffstat (limited to 'Lib/test/regrtest.py')
-rwxr-xr-xLib/test/regrtest.py15
1 files changed, 7 insertions, 8 deletions
diff --git a/Lib/test/regrtest.py b/Lib/test/regrtest.py
index ffdea06..75f8230 100755
--- a/Lib/test/regrtest.py
+++ b/Lib/test/regrtest.py
@@ -534,6 +534,9 @@ def printlist(x, width=70, indent=4):
# Whether a skip is expected here depends on whether a large test
# input file has been downloaded. test_normalization.skip_expected
# controls that.
+# test_socket_ssl
+# Controlled by test_socket_ssl.skip_expected. Requires the network
+# resource, and a socket module with ssl support.
_expectations = {
'win32':
@@ -565,7 +568,6 @@ _expectations = {
test_pwd
test_resource
test_signal
- test_socket_ssl
test_socketserver
test_sunaudiodev
test_timing
@@ -583,7 +585,6 @@ _expectations = {
test_largefile
test_nis
test_ntpath
- test_socket_ssl
test_socketserver
test_sunaudiodev
test_unicode_file
@@ -618,7 +619,6 @@ _expectations = {
test_pty
test_pwd
test_signal
- test_socket_ssl
test_socketserver
test_sunaudiodev
test_sundry
@@ -736,7 +736,6 @@ _expectations = {
test_popen2
test_pty
test_pwd
- test_socket_ssl
test_socketserver
test_strop
test_sunaudiodev
@@ -769,7 +768,6 @@ _expectations = {
test_nis
test_ntpath
test_poll
- test_socket_ssl
test_socketserver
test_sunaudiodev
test_unicode_file
@@ -792,7 +790,6 @@ _expectations = {
test_linuxaudiodev
test_mpz
test_openpty
- test_socket_ssl
test_socketserver
test_winreg
test_winsound
@@ -820,7 +817,6 @@ _expectations = {
test_openpty
test_pyexpat
test_sax
- test_socket_ssl
test_socketserver
test_sunaudiodev
test_unicode_file
@@ -850,7 +846,6 @@ _expectations = {
test_poll
test_popen2
test_resource
- test_socket_ssl
test_socketserver
test_sunaudiodev
test_unicode_file
@@ -863,6 +858,7 @@ class _ExpectedSkips:
def __init__(self):
import os.path
from test import test_normalization
+ from test import test_socket_ssl
self.valid = False
if sys.platform in _expectations:
@@ -875,6 +871,9 @@ class _ExpectedSkips:
if test_normalization.skip_expected:
self.expected.add('test_normalization')
+ if test_socket_ssl.skip_expected:
+ self.expected.add('test_socket_ssl')
+
self.valid = True
def isvalid(self):