Commit cbfc0343 authored by Tim Peters's avatar Tim Peters

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

Don't even try to import _socket when running under Jython.
parent 78f0dd33
...@@ -35,9 +35,10 @@ def check_all(modname): ...@@ -35,9 +35,10 @@ def check_all(modname):
all.sort() all.sort()
verify(keys==all, "%s != %s" % (keys, all)) verify(keys==all, "%s != %s" % (keys, all))
# In case _socket fails to build, make this test fail more gracefully if not sys.platform.startswith('java'):
# than an AttributeError somewhere deep in CGIHTTPServer. # In case _socket fails to build, make this test fail more gracefully
import _socket # than an AttributeError somewhere deep in CGIHTTPServer.
import _socket
check_all("BaseHTTPServer") check_all("BaseHTTPServer")
check_all("CGIHTTPServer") check_all("CGIHTTPServer")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment