def test_compatibilityLayer(self):
        """
        If compatibility layer is present, importing gobject uses the gi
        compatibility layer.
        """
        if "gi.pygtkcompat" not in sys.modules:
            raise SkipTest("This version of gi doesn't include pygtkcompat.")
        import gobject
        self.assertTrue(gobject.__name__.startswith("gi."))

        If compatibility layer is present, importing gobject uses the gi
        compatibility layer.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/internet/test/test_gireactor.py