From: <fwi...@us...> - 2008-10-21 00:21:56
|
Revision: 5489 http://jython.svn.sourceforge.net/jython/?rev=5489&view=rev Author: fwierzbicki Date: 2008-10-21 00:21:45 +0000 (Tue, 21 Oct 2008) Log Message: ----------- moved test138 to test_str_jy. Modified Paths: -------------- trunk/jython/Lib/test/test_str_jy.py Removed Paths: ------------- trunk/jython/bugtests/test138.py Modified: trunk/jython/Lib/test/test_str_jy.py =================================================================== --- trunk/jython/Lib/test/test_str_jy.py 2008-10-20 23:54:14 UTC (rev 5488) +++ trunk/jython/Lib/test/test_str_jy.py 2008-10-21 00:21:45 UTC (rev 5489) @@ -130,6 +130,12 @@ self.assertEqual(repr(test2), '"\'bar"') self.assertEqual(repr(unicode(test2)), 'u"\'bar"') + def test_startswith(self): + #from bugtests -- maybe making sure methods are case sensative? + msg = 'This is a test.' + self.assertRaises(AttributeError, getattr, msg, "startsWith") + assert msg.startswith('This') + def test_main(): test_support.run_unittest(WrappedStrCmpTest, IntToStrTest, Deleted: trunk/jython/bugtests/test138.py =================================================================== --- trunk/jython/bugtests/test138.py 2008-10-20 23:54:14 UTC (rev 5488) +++ trunk/jython/bugtests/test138.py 2008-10-21 00:21:45 UTC (rev 5489) @@ -1,17 +0,0 @@ -""" - -""" - -import support - -msg = 'This is a test.' - -try: - msg.startsWith('This') -except AttributeError, e: - pass -else: - raise support.TestError("startsWith should not be defined") - -if not msg.startswith('This'): - raise support.TestError("startswith error") This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |