'Make sure that any C{AttributeError}s raised by C{testSuite} are not
swallowed by L{TestLoader}.'

def test_customLoadRaisesAttributeError(self):

    def testSuite():
        raise AttributeError('should    be    reraised')
    from twisted.trial.test import mockcustomsuite2
    (mockcustomsuite2.testSuite, original) = (testSuite, mockcustomsuite2.testSuite)
    try:
        self.assertRaises(AttributeError, self.loader.loadModule, mockcustomsuite2)
    finally:
        mockcustomsuite2.testSuite = original
