Skip to content

Commit

Permalink
Add MRO for FileInjectStdioManager
Browse files Browse the repository at this point in the history
  • Loading branch information
jayvdb committed Sep 10, 2019
1 parent 60237c4 commit cfe4cf2
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/test_stdiomgr_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,20 @@ def test_context_manager_mro(stdio_mgr):
collections.abc.Iterable,
object,
)
elif stdio_mgr is FileInjectStdioManager:
assert mro == (
FileInjectStdioManager,
InjectSysIoContextManager, # __enter__ & __exit__
StdioManagerBase, # __new__, and close()
StdioTupleBase, # __new___
TupleContextManager,
tuple,
AbstractContextManager,
abc.ABC,
MultiItemTuple,
collections.abc.Iterable,
object,
)


def test_context_manager_instance_with(stdio_mgr):
Expand Down

0 comments on commit cfe4cf2

Please sign in to comment.