Skip to content
Discussion options

You must be logged in to vote

Note that I have recently changed the behavior, so that FakeFileWrapper now derives from io.BufferedIOBase or io.TextIOBase (it forwards all calls to the fake wrapper anyway). The way I had tried to refactor this before was too complicated - the current implementation basically just fakes the inheritance, so that isinstance(file_object, io.BaseIO) will now return True.

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by buhtz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #705 on October 13, 2023 06:15.