def test_immutableObject(self):
        key = object()
        sys.modules[key] = key
        self.addCleanup(sys.modules.pop, key)
        self.test_duplicateWarningCollected()
L{_collectWarnings}'s behavior is not altered by the presence of an
dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/trial/test/test_warning.py/CollectWarningsTests.test_immutableObject