From: <pj...@us...> - 2008-10-05 00:04:46
|
Revision: 5357 http://jython.svn.sourceforge.net/jython/?rev=5357&view=rev Author: pjenvey Date: 2008-10-05 00:00:24 +0000 (Sun, 05 Oct 2008) Log Message: ----------- avoid test_asynchat on BSD where it deadlocks refs #1064 Modified Paths: -------------- trunk/jython/Lib/test/regrtest.py trunk/jython/Lib/test/test_asynchat.py Modified: trunk/jython/Lib/test/regrtest.py =================================================================== --- trunk/jython/Lib/test/regrtest.py 2008-10-02 02:31:03 UTC (rev 5356) +++ trunk/jython/Lib/test/regrtest.py 2008-10-05 00:00:24 UTC (rev 5357) @@ -1379,7 +1379,6 @@ test_aepack test_al test_applesingle - test_asynchat test_audioop test_bsddb test_bsddb185 @@ -1529,8 +1528,13 @@ for skip in WIN_ONLY: self.expected.add(skip) - if test_support.is_jython and os._name != 'posix': - self.expected.add('test_mhlib') + if test_support.is_jython: + if os._name != 'posix': + self.expected.add('test_mhlib') + import platform + os_name = platform.java_ver()[3][0] + if os_name == 'Mac OS X' or 'BSD' in os_name: + self.expected.add('test_asynchat') self.valid = True Modified: trunk/jython/Lib/test/test_asynchat.py =================================================================== --- trunk/jython/Lib/test/test_asynchat.py 2008-10-02 02:31:03 UTC (rev 5356) +++ trunk/jython/Lib/test/test_asynchat.py 2008-10-05 00:00:24 UTC (rev 5357) @@ -5,6 +5,12 @@ import unittest from test import test_support +import platform +os_name = platform.java_ver()[3][0] +if os_name == 'Mac OS X' or 'BSD' in os_name: + raise test_support.TestSkipped('test_asynchat deadlocks on Jython/BSD: ' + 'http://bugs.jython.org/issue1064') + HOST = "127.0.0.1" PORT = 54322 This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |