Ticket #1795 (closed enhancement: fixed)
Trial feature for simulating missing modules for a test run
| Reported by: | exarkun | Owned by: | therve |
|---|---|---|---|
| Priority: | highest | Milestone: | |
| Component: | trial | Keywords: | |
| Cc: | therve, jml | Branch: | |
| Author: | Launchpad Bug: |
Description
It would be nice if trial could fake out Python and make it look like a particular module was not present on the system. ie,
trial --without-module OpenSSL twisted
would run Twisted tests such that "import OpenSSL" always raised an ImportError.
One implementation technique for this is to put None into sys.modules for the key "OpenSSL".
Change History
Note: See
TracTickets for help on using
tickets.
