On 18.03.13 22:26, Jeff Allen wrote:
The puzzle is that it requires t.read() to succeed.
When I insert a check for bytes type in all the places it seems
necessary in my code, I pass the first two conditions, but since
t.read() also raises TypeError, the overall test fails. Is reading the
stream with read() intended to succeed? Why is this desired?
And alternative option is to change C implementation of
TextIOWrapper.read() to raise an exception in this case. However I worry
that it can break backward compatibility. Are there other tests (in
other test files) which fail with a new Jython TextIOWrapper?
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com