def test_noQuit(self):
        """
        Older versions of PyGObject lack C{Application.quit}, and so won't
        allow registration.
        """
        reactor = gireactor.GIReactor(useGtk=False)
        self.addCleanup(self.unbuildReactor, reactor)
        # An app with no "quit" method:
        app = object()
        exc = self.assertRaises(RuntimeError, reactor.registerGApplication, app)
        self.assertTrue(exc.args[0].startswith(
                "Application registration is not"))

        Older versions of PyGObject lack C{Application.quit}, and so won't
        allow registration.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/internet/test/test_gireactor.py