Ticket #5494 defect closed fixed
If gi can't be imported, gtk2 reactor still fails (and vice versa)
| Reported by: | itamar | Owned by: | itamar |
|---|---|---|---|
| Priority: | normal | Milestone: | Twisted-12.1 |
| Component: | core | Keywords: | |
| Cc: | jesstess | Branch: | branches/gtk2-vs-gtk3-5494 |
| Author: | itamar | Launchpad Bug: |
Description
#4558 made it impossible to import twisted.internet.gtk2reactor if sys.modules contains a "gi" key. This seems to overlook the fact that even a *failed* import of the gi module adds such a key to that dictionary. Since the test suite tries to test gireactor, there will always be such a key, so gtk2reactor can never be imported by the test suite. The same issue would operate, only in reverse, if gtk2reactor was imported first.
Change History
Note: See
TracTickets for help on using
tickets.
