[Checkins] SVN: zope.testrunner/trunk/src/zope/testrunner/testrunner-e The 'print <unicode>' tests are bogus, because that can never succeed. There is no way to write the expected output in a way that matches unicode output.
Lennart Regebro
regebro at gmail.com
Mon Apr 26 17:28:12 EDT 2010
Log message for revision 111455:
The 'print <unicode>' tests are bogus, because that can never succeed. There is no way to write the expected output in a way that matches unicode output.
Changed:
U zope.testrunner/trunk/src/zope/testrunner/testrunner-errors.txt
U zope.testrunner/trunk/src/zope/testrunner/testrunner-ex/unicode.txt
-=-
Modified: zope.testrunner/trunk/src/zope/testrunner/testrunner-errors.txt
===================================================================
--- zope.testrunner/trunk/src/zope/testrunner/testrunner-errors.txt 2010-04-26 20:51:59 UTC (rev 111454)
+++ zope.testrunner/trunk/src/zope/testrunner/testrunner-errors.txt 2010-04-26 21:28:12 UTC (rev 111455)
@@ -813,22 +813,6 @@
----------------------------------------------------------------------
File testrunner-ex/unicode.txt", Line NNN, in unicode.txt
Failed example:
- print get_unicode()
- Expected:
- oink
- Got:
- foo â bar
- ----------------------------------------------------------------------
- File testrunner-ex/unicode.txt", Line NNN, in unicode.txt
- Failed example:
- print get_unicode()
- Expected:
- foo â bar
- Got:
- foo â bar
- ----------------------------------------------------------------------
- File testrunner-ex/unicode.txt", Line NNN, in unicode.txt
- Failed example:
'xyz'
Expected:
123
Modified: zope.testrunner/trunk/src/zope/testrunner/testrunner-ex/unicode.txt
===================================================================
--- zope.testrunner/trunk/src/zope/testrunner/testrunner-ex/unicode.txt 2010-04-26 20:51:59 UTC (rev 111454)
+++ zope.testrunner/trunk/src/zope/testrunner/testrunner-ex/unicode.txt 2010-04-26 21:28:12 UTC (rev 111455)
@@ -7,8 +7,6 @@
>>> def get_unicode():
... return u'foo \u2014 bar'
- >>> print get_unicode()
- oink
There was another unicode bug. When a function returned unicode some internal
state switched. This broke any further test not returning unicode but a plain
@@ -16,8 +14,6 @@
>>> get_unicode()
u'foo \u2014 bar'
- >>> print get_unicode()
- foo â bar
Get some normal output as well::
More information about the checkins
mailing list