SF patch 490393: test___all__ and Jython; from Finn Bock.

Don't even try to import _socket when running under Jython.
This commit is contained in:
Tim Peters 2001-12-07 21:35:42 +00:00
parent 78f0dd3397
commit cbfc0343fc
1 changed files with 4 additions and 3 deletions

View File

@ -35,9 +35,10 @@ def check_all(modname):
all.sort()
verify(keys==all, "%s != %s" % (keys, all))
# In case _socket fails to build, make this test fail more gracefully
# than an AttributeError somewhere deep in CGIHTTPServer.
import _socket
if not sys.platform.startswith('java'):
# In case _socket fails to build, make this test fail more gracefully
# than an AttributeError somewhere deep in CGIHTTPServer.
import _socket
check_all("BaseHTTPServer")
check_all("CGIHTTPServer")