From: <am...@us...> - 2010-04-09 17:18:38
|
Revision: 7010 http://jython.svn.sourceforge.net/jython/?rev=7010&view=rev Author: amak Date: 2010-04-09 17:18:31 +0000 (Fri, 09 Apr 2010) Log Message: ----------- Disabling the AI_PASSIVE test. It cannot be written in way that is portable between systems. The only way around this is to configure expected results, on a per-system basis, outside of the test suite. Modified Paths: -------------- trunk/jython/Lib/test/test_socket.py Modified: trunk/jython/Lib/test/test_socket.py =================================================================== --- trunk/jython/Lib/test/test_socket.py 2010-04-09 05:06:08 UTC (rev 7009) +++ trunk/jython/Lib/test/test_socket.py 2010-04-09 17:18:31 UTC (rev 7010) @@ -1464,6 +1464,12 @@ self.assert_(isinstance(sockaddr[0], str)) def testAI_PASSIVE(self): + # Disabling this test for now; it's expectations are not portable. + # Expected results are too dependent on system config to be made portable between systems. + # And the only way to determine what configuration to test is to use the + # java.net.InetAddress.getAllByName() method, which is what is used to + # implement the getaddrinfo() function. Therefore, no real point in the test. + return IPV4_LOOPBACK = "127.0.0.1" local_hostname = java.net.InetAddress.getLocalHost().getHostName() local_ip_address = java.net.InetAddress.getLocalHost().getHostAddress() This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |