9797
9898 subprocess Run all tests for the subprocess module.
9999
100+ urlfetch - It is okay to download files required on testing.
101+
100102To enable all resources except one, use '-uall,-<resource>'. For
101103example, to run all the tests except for the bsddb tests, give the
102104option '-uall,-bsddb'.
140142from test import test_support
141143
142144RESOURCE_NAMES = ('audio' , 'curses' , 'largefile' , 'network' , 'bsddb' ,
143- 'decimal' , 'compiler' , 'subprocess' )
145+ 'decimal' , 'compiler' , 'subprocess' , 'urlfetch' )
144146
145147
146148def usage (code , msg = '' ):
@@ -671,20 +673,12 @@ def printlist(x, width=70, indent=4):
671673# test_pep277
672674# The _ExpectedSkips constructor adds this to the set of expected
673675# skips if not os.path.supports_unicode_filenames.
674- # test_normalization
675- # Whether a skip is expected here depends on whether a large test
676- # input file has been downloaded. test_normalization.skip_expected
677- # controls that.
678676# test_socket_ssl
679677# Controlled by test_socket_ssl.skip_expected. Requires the network
680678# resource, and a socket module with ssl support.
681679# test_timeout
682680# Controlled by test_timeout.skip_expected. Requires the network
683681# resource and a socket module.
684- # test_codecmaps_*
685- # Whether a skip is expected here depends on whether a large test
686- # input file has been downloaded. test_codecmaps_*.skip_expected
687- # controls that.
688682
689683_expectations = {
690684 'win32' :
@@ -1056,7 +1050,6 @@ def printlist(x, width=70, indent=4):
10561050 test_macfs
10571051 test_macostools
10581052 test_nis
1059- test_normalization
10601053 test_ossaudiodev
10611054 test_pep277
10621055 test_plistlib
@@ -1108,12 +1101,8 @@ def printlist(x, width=70, indent=4):
11081101class _ExpectedSkips :
11091102 def __init__ (self ):
11101103 import os .path
1111- from test import test_normalization
11121104 from test import test_socket_ssl
11131105 from test import test_timeout
1114- from test import test_codecmaps_cn , test_codecmaps_jp
1115- from test import test_codecmaps_kr , test_codecmaps_tw
1116- from test import test_codecmaps_hk
11171106
11181107 self .valid = False
11191108 if sys .platform in _expectations :
@@ -1126,19 +1115,12 @@ def __init__(self):
11261115 if not os .path .supports_unicode_filenames :
11271116 self .expected .add ('test_pep277' )
11281117
1129- if test_normalization .skip_expected :
1130- self .expected .add ('test_normalization' )
1131-
11321118 if test_socket_ssl .skip_expected :
11331119 self .expected .add ('test_socket_ssl' )
11341120
11351121 if test_timeout .skip_expected :
11361122 self .expected .add ('test_timeout' )
11371123
1138- for cc in ('cn' , 'jp' , 'kr' , 'tw' , 'hk' ):
1139- if eval ('test_codecmaps_' + cc ).skip_expected :
1140- self .expected .add ('test_codecmaps_' + cc )
1141-
11421124 if sys .maxint == 9223372036854775807L :
11431125 self .expected .add ('test_rgbimg' )
11441126 self .expected .add ('test_imageop' )
0 commit comments