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?
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4