'App discovery should preserve stack traces. Regression test for #22920.'

def test_import_exception_is_not_masked(self):

    with self.assertRaisesMessage(ImportError, 'Oops'):
        with self.settings(INSTALLED_APPS=['import_error_package']):
            pass
