Reordered test_select so it runs on 2.5

This commit is contained in:
Ryan Williams
2009-11-30 12:12:09 -08:00
parent e49fa06db6
commit 0dfa5ac826

View File

@@ -30,9 +30,10 @@ try:
s.close() s.close()
have_network_access = True have_network_access = True
except socket.error, e: except socket.error, e:
print "Skipping network tests"
have_network_access = False have_network_access = False
import_main(globals(), 'test_select')
import_main(globals(), 'test_SimpleHTTPServer') import_main(globals(), 'test_SimpleHTTPServer')
import_main(globals(), 'test_asynchat') import_main(globals(), 'test_asynchat')
import_main(globals(), 'test_asyncore') import_main(globals(), 'test_asyncore')
@@ -40,7 +41,6 @@ import_main(globals(), 'test_ftplib')
import_main(globals(), 'test_httplib') import_main(globals(), 'test_httplib')
if have_network_access: if have_network_access:
import_main(globals(), 'test_httpservers') import_main(globals(), 'test_httpservers')
import_main(globals(), 'test_select')
if have_network_access: if have_network_access:
import_main(globals(), 'test_socket') import_main(globals(), 'test_socket')
import_main(globals(), 'test_socket_ssl') import_main(globals(), 'test_socket_ssl')