#5977 enhancement new
Make `twisted.test.test_twisted.SetAsideModule` part of a public testing interface offered by trial
|Reported by:||exarkun||Owned by:|
Description (last modified by exarkun)
This is a handy tool for testing code that (unfortunately) must interact with the Python import system. It needs unit tests and documentation and to be exposed under a suitable public name (ie, not in a private module, not in a test module - probably somewhere in twisted.trial). Some part of the testing howto should also cover its usage.
The nearby function, _makePackages, might also be worth exposing, since after you set a module aside, you probably want to replace it with something else.
There's another helper too, twisted/internet.test.test_main.NoReactor.
See also glyph's comment about how the two APIs might be melded: http://twistedmatrix.com/trac/ticket/5935#comment:21