Refcounting isn't available in Jython. Putting the jython test around it.
This closes patch "[ #490414 ] Jython and test_socket".
This commit is contained in:
parent
0f2d4b84a6
commit
ada1983950
|
@ -90,12 +90,13 @@ if hasattr(socket, 'getservbyname'):
|
|||
except socket.error:
|
||||
pass
|
||||
|
||||
try:
|
||||
import sys
|
||||
if not sys.platform.startswith('java'):
|
||||
try:
|
||||
# On some versions, this loses a reference
|
||||
import sys
|
||||
orig = sys.getrefcount(__name__)
|
||||
socket.getnameinfo(__name__,0)
|
||||
except SystemError:
|
||||
except SystemError:
|
||||
if sys.getrefcount(__name__) <> orig:
|
||||
raise TestFailed,"socket.getnameinfo loses a reference"
|
||||
|
||||
|
|
Loading…
Reference in New Issue