Add protection against attempts at importing static bindings
commitd70403357d6b510356dd375304fb97e458fd12b2
authorSimon Feltman <sfeltman@src.gnome.org>
Wed, 6 Aug 2014 05:45:46 +0000 (5 22:45 -0700)
committerSimon Feltman <sfeltman@src.gnome.org>
Wed, 6 Aug 2014 05:50:47 +0000 (5 22:50 -0700)
tree2967c9a5ff1bcb86b59a69a849878a2e93d6680e
parent5ca4d25eac0efcc12b02fe53f379ee41e69bf1d2
Add protection against attempts at importing static bindings

Clobber gobject, gio, glib, gtk, and gtk.gdk in sys.modules upon importing
gi with dummy modules which produce an error upon access.

https://bugzilla.gnome.org/show_bug.cgi?id=709183
gi/__init__.py
tests/test_import_machinery.py