forked from goodboy/tractor
1
0
Fork 0
tractor/tractor
Tyler Goodlet ecced3d09a Allow choosing the spawn backend per test session
Add a `--spawn-backend` option which can be set to one of {'mp',
'trio_run_in_process'} which will either run the test suite using the
`multiprocessing` or `trio-run-in-process` backend respectively.
Currently trying to run both in the same session can result in hangs
seemingly due to a lack of cleanup of forkservers / resource trackers
from `multiprocessing` which cause broken pipe errors on occasion (no
idea on the details).

For `test_cancellation.py::test_nested_multierrors`, use less nesting
when mp is used since it breaks if we push it too hard with the
whole recursive subprocess spawning thing...
2020-01-26 21:36:08 -05:00
..
testing Allow choosing the spawn backend per test session 2020-01-26 21:36:08 -05:00
__init__.py Be explicit about the spawning backend default 2020-01-26 21:13:29 -05:00
_actor.py Be explicit about the spawning backend default 2020-01-26 21:13:29 -05:00
_discovery.py Move discovery functions to their own module 2019-03-24 11:37:11 -04:00
_exceptions.py Expose trio exceptions to `RemoteActorError` 2019-10-30 00:32:10 -04:00
_forkserver_override.py Continue hacking the forkserver in Python 3.8 2019-10-15 22:37:47 -04:00
_ipc.py Make latest mpypy happy 2019-12-10 00:55:03 -05:00
_portal.py More mypy apeasement on 3.7 2020-01-15 21:06:13 -05:00
_spawn.py Be explicit about the spawning backend default 2020-01-26 21:13:29 -05:00
_state.py Make info object a mapping type 2019-12-09 00:03:22 -05:00
_streaming.py Validate stream functions at decorate time 2019-03-29 19:10:32 -04:00
_trionics.py Type checker fixes 2020-01-21 10:28:32 -05:00
log.py Allow overriding the root logger name 2019-12-20 16:37:17 -05:00
msg.py Validate stream functions at decorate time 2019-03-29 19:10:32 -04:00