Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(5)

Side by Side Diff: jython/Lib/test/test_exceptions.py

Issue 5655: Fix for #1128: java.lang.String should be mapped to PyUnicode, not PyString Base URL: https://jython.svn.sourceforge.net/svnroot/jython/trunk/
Patch Set: same patch, ignoring whitespace changes Created 16 years, 6 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
OLDNEW
1 # Python test set -- part 5, built-in exceptions 1 # Python test set -- part 5, built-in exceptions
2 2
3 import os 3 import os
4 import sys 4 import sys
5 import unittest 5 import unittest
6 import warnings 6 import warnings
7 import pickle, cPickle 7 import pickle, cPickle
8 8
9 from test.test_support import TESTFN, unlink, run_unittest 9 from test.test_support import TESTFN, unlink, run_unittest
10 10
(...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after
332 def testUnicodeStrUsage(self): 332 def testUnicodeStrUsage(self):
333 # Make sure both instances and classes have a str and unicode 333 # Make sure both instances and classes have a str and unicode
334 # representation. 334 # representation.
335 self.failUnless(str(Exception)) 335 self.failUnless(str(Exception))
336 self.failUnless(unicode(Exception)) 336 self.failUnless(unicode(Exception))
337 self.failUnless(str(Exception('a'))) 337 self.failUnless(str(Exception('a')))
338 self.failUnless(unicode(Exception(u'a'))) 338 self.failUnless(unicode(Exception(u'a')))
339 339
340 340
341 def test_main(): 341 def test_main():
342 import test_support 342 from test import test_support
Nicholas Riley 2008/09/14 00:22:45 looks unrelated, check in separately
343 if test_support.is_jython: 343 if test_support.is_jython:
344 # XXX: http://bugs.jython.org/issue1063 344 # XXX: http://bugs.jython.org/issue1063
345 del ExceptionTests.testInfiniteRecursion 345 del ExceptionTests.testInfiniteRecursion
346 run_unittest(ExceptionTests) 346 run_unittest(ExceptionTests)
347 347
348 if __name__ == '__main__': 348 if __name__ == '__main__':
349 test_main() 349 test_main()
OLDNEW

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b