tests: Make patching in pygtkcompat reversible21cee6cc4fbc7fb1a28a15840924b0da52b49fca21/head
commit21cee6cc4fbc7fb1a28a15840924b0da52b49fca
authorChristoph Reiter <reiter.christoph@gmail.com>
Sun, 11 Feb 2018 15:08:18 +0000 (11 16:08 +0100)
committerChristoph Reiter <reiter.christoph@gmail.com>
Sun, 11 Feb 2018 16:32:20 +0000 (11 17:32 +0100)
tree44ede8be92381e3fee5b4bb84ee7f1c64c51af60
parent7f5aedb6e1f317b33a96d0c77641b95f182b2a47
tests: Make patching in pygtkcompat reversible

Record all the attribute and sys.modules changes and add an API
for reverting them after tests are completed.

This allows us to run the pygtkcompat tests in the same test process
as other tests.
pygtkcompat/pygtkcompat.py
setup.py
tests/Makefile.am
tests/runtests.py
tests/test_pygtkcompat.py [moved from tests/compat_test_pygtk.py with 78% similarity]