'L{_collectWarnings}\'s behavior is not altered by the presence of an
object which cannot have attributes set on it as a value in
C{sys.modules}.'

def test_immutableObject(self):

    key = object()
    sys.modules[key] = key
    self.addCleanup(sys.modules.pop, key)
    self.test_duplicateWarningCollected()
