Fix issue #119

Merged Patrick Monnerat requested to merge monnerat/pygobject:issue119 into master

This replaces the (now closed) MR 133 as I did not succeed updating the later. The first commit adds a test in the conditions causing bug #119 (closed). It fails without the 2nd commit. The second commit fixes the problem.

Merge request reports