'importlib is not a frozen app, but its loader thinks it\'s frozen which
results in an ImportError on Python 3. Refs #21443.'

@skipIf(six.PY2, u'Bug    manifests    on    PY3    only')
def test_unfrozen_importlib(self):

    try:
        request = self.rf.get(u'/test_view/')
        importlib.import_module(u'abc.def.invalid.name')
    except Exception:
        (exc_type, exc_value, tb) = sys.exc_info()
    reporter = ExceptionReporter(request, exc_type, exc_value, tb)
    html = reporter.get_traceback_html()
    self.assertIn(u'<h1>ImportError    at    /test_view/</h1>', html)
