From: <pj...@us...> - 2009-04-10 23:09:53
|
Revision: 6211 http://jython.svn.sourceforge.net/jython/?rev=6211&view=rev Author: pjenvey Date: 2009-04-10 23:09:34 +0000 (Fri, 10 Apr 2009) Log Message: ----------- feeble attempt of debugging why these fail on hudson's all job Modified Paths: -------------- trunk/jython/Lib/test/test_cmd_line.py trunk/jython/Lib/test/test_sax.py Modified: trunk/jython/Lib/test/test_cmd_line.py =================================================================== --- trunk/jython/Lib/test/test_cmd_line.py 2009-04-10 21:12:28 UTC (rev 6210) +++ trunk/jython/Lib/test/test_cmd_line.py 2009-04-10 23:09:34 UTC (rev 6211) @@ -42,11 +42,13 @@ self.verify_valid_flag('-S') def test_usage(self): - self.assertTrue('usage' in self.start_python('-h')) + result = self.start_python('-h') + self.assertTrue('usage' in result, repr(result)) def test_version(self): version = 'Jython %d.%d' % sys.version_info[:2] - self.assertTrue(self.start_python('-V').startswith(version)) + result = self.start_python('-V') + self.assertTrue(result.startswith(version), repr(result)) def test_main(): test.test_support.run_unittest(CmdLineTest) Modified: trunk/jython/Lib/test/test_sax.py =================================================================== --- trunk/jython/Lib/test/test_sax.py 2009-04-10 21:12:28 UTC (rev 6210) +++ trunk/jython/Lib/test/test_sax.py 2009-04-10 23:09:34 UTC (rev 6211) @@ -479,8 +479,21 @@ if os.name == 'java': testfile = testfile.replace('\\', '/') - return xmlgen.location.getSystemId().endswith(testfile) and \ + t = xmlgen.location.getSystemId().endswith(testfile) and \ xmlgen.location.getPublicId() is None + if not t: + print 'os.name: %s' % os.name + print 'systemId (%s): %s publicId (%s): %s' % \ + (type(xmlgen.location.getSystemId()), xmlgen.location.getSystemId(), + type(xmlgen.location.getPublicId()), xmlgen.location.getPublicId()) + content = open(testfile).read() + print '------- contents of %s ---------' % testfile + print content + print '------- end contents of %s ---------' % testfile + print '------- repr ---------' + print repr(content) + print '------- end repr ---------' + return t # =========================================================================== This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |