From: <pj...@us...> - 2009-04-04 04:12:01
|
Revision: 6158 http://jython.svn.sourceforge.net/jython/?rev=6158&view=rev Author: pjenvey Date: 2009-04-04 04:11:53 +0000 (Sat, 04 Apr 2009) Log Message: ----------- move to unicode tests Modified Paths: -------------- trunk/jython/Lib/test/test_str_jy.py trunk/jython/Lib/test/test_unicode_jy.py Modified: trunk/jython/Lib/test/test_str_jy.py =================================================================== --- trunk/jython/Lib/test/test_str_jy.py 2009-04-04 04:11:13 UTC (rev 6157) +++ trunk/jython/Lib/test/test_str_jy.py 2009-04-04 04:11:53 UTC (rev 6158) @@ -92,14 +92,7 @@ # But, args found before the first unicode should not be __unicode__'d self.assertEquals("%s %s %s" % (S(), u"bar", S()), u"str bar unicode") - def test_non_ascii_unicode_mod_str(self): - # Regression test for a problem on the formatting logic: when no unicode - # args were found, Jython stored the resulting buffer on a PyString, - # decoding it later to make a PyUnicode. That crashed when the left side - # of % was a unicode containing non-ascii chars - self.assertEquals(u"\u00e7%s" % "foo", u"\u00e7foo") - class DisplayTest(unittest.TestCase): def test_str_and_repr(self): Modified: trunk/jython/Lib/test/test_unicode_jy.py =================================================================== --- trunk/jython/Lib/test/test_unicode_jy.py 2009-04-04 04:11:13 UTC (rev 6157) +++ trunk/jython/Lib/test/test_unicode_jy.py 2009-04-04 04:11:53 UTC (rev 6158) @@ -120,7 +120,14 @@ return key u'%(foo)s' % EnsureUnicode() + def test_non_ascii_unicode_mod_str(self): + # Regression test for a problem on the formatting logic: when no unicode + # args were found, Jython stored the resulting buffer on a PyString, + # decoding it later to make a PyUnicode. That crashed when the left side + # of % was a unicode containing non-ascii chars + self.assertEquals(u"\u00e7%s" % "foo", u"\u00e7foo") + def test_main(): test_support.run_unittest(UnicodeTestCase, UnicodeFormatTestCase) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |