(target_os)
| 123 | # its components gets initialized and eventually teared down and how does it |
| 124 | # interact with both tests and underlying platform specific concerns. |
| 125 | def find_os_context_factory(target_os): |
| 126 | registry = dict( |
| 127 | android=AndroidOSContext, ios=IOSContext, windows=WindowsContext) |
| 128 | return registry.get(target_os, PosixContext) |
| 129 | |
| 130 | |
| 131 | @contextmanager |