X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;ds=sidebyside;f=eventlet%2Ftests%2Fstdlib%2Fall_modules.py;fp=eventlet%2Ftests%2Fstdlib%2Fall_modules.py;h=0000000000000000000000000000000000000000;hb=358bd9258c2b6d2ee74de4dfd07a5123107abad4;hp=ec8a5f81131bc78b7af33c01bf539b3da2073b71;hpb=376ff3bfe7071cc0793184a378c4e74508fb0d97;p=packages%2Ftrusty%2Fpython-eventlet.git diff --git a/eventlet/tests/stdlib/all_modules.py b/eventlet/tests/stdlib/all_modules.py deleted file mode 100644 index ec8a5f8..0000000 --- a/eventlet/tests/stdlib/all_modules.py +++ /dev/null @@ -1,40 +0,0 @@ -def get_modules(): - test_modules = [ - 'test_select', - 'test_SimpleHTTPServer', - 'test_asynchat', - 'test_asyncore', - 'test_ftplib', - 'test_httplib', - 'test_os', - 'test_queue', - 'test_socket_ssl', - 'test_socketserver', - # 'test_subprocess', - 'test_thread', - 'test_threading', - 'test_threading_local', - 'test_urllib', - 'test_urllib2_localnet'] - - network_modules = [ - 'test_httpservers', - 'test_socket', - 'test_ssl', - 'test_timeout', - 'test_urllib2'] - - # quick and dirty way of testing whether we can access - # remote hosts; any tests that try internet connections - # will fail if we cannot - import socket - s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) - try: - s.settimeout(0.5) - s.connect(('eventlet.net', 80)) - s.close() - test_modules = test_modules + network_modules - except socket.error as e: - print("Skipping network tests") - - return test_modules