Opened 23 months ago

Last modified 23 months ago

#5977 enhancement new

Make `twisted.test.test_twisted.SetAsideModule` part of a public testing interface offered by trial

Reported by: exarkun Owned by:
Priority: normal Milestone:
Component: trial Keywords: tests
Cc: jml Branch:
Author: Launchpad Bug:

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

Change History (4)

comment:1 Changed 23 months ago by DefaultCC Plugin

  • Cc jml added

comment:2 Changed 23 months ago by exarkun

  • Description modified (diff)

comment:3 Changed 23 months ago by exarkun

  • Description modified (diff)

comment:4 Changed 23 months ago by exarkun

  • Description modified (diff)
Note: See TracTickets for help on using tickets.