Ticket #5977 enhancement new

Opened 19 months ago

Last modified 19 months ago

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) (diff)

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

1

Changed 19 months ago by DefaultCC Plugin

  • cc jml added

2

Changed 19 months ago by exarkun

  • description modified (diff)

3

Changed 19 months ago by exarkun

  • description modified (diff)

4

Changed 19 months ago by exarkun

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