[Python-Dev] test_string, test_unicode fail
Guido van Rossum
guido@python.org
Thu, 20 Sep 2001 09:54:05 -0400
Today, test_string and test_unicode have started to fail. I'm
suspicious that this is the result of changes Marc-Andre checked in to
make unicode() behave more like str().
A little investigation (not that the string test suite makes this easy
:-( ) shows that line 133 of string_tests.py checks to make sure that
'.'.join('a', u'b', 3)
raise an exception. But it now silently casts the 3 to u'3', so the
result is u'a.b.3'.
Is this really an good idea? Was it an intended side effect?
Also, Marc-Andre, please run the full test suite and check its results
before checking in changes like this.
--Guido van Rossum (home page: http://www.python.org/~guido/)