In pytester tests, pytest stashes & restores the sys.modules for each test. So if the test imports a new module, it is initialized anew each time. Turns out the readline module isn't multi-init safe, which causes pytester.spawn to crash or hang. So preserve it as a workaround.
2 lines
86 B
ReStructuredText
2 lines
86 B
ReStructuredText
Fixed a crash or hang in ``pytester.spawn`` when the ``readline`` module is involved.
|