Skip to content
Myr

module name is quoted in ImportErrors on 3.x

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Daniel Neuhäuser · committed by Daniel Neuhäuser · parent 8f73c55 · Browse files · 1 file+6 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+6 added−1 removed

  • other:+6 added−1 removed

1 file+6 added−1 removed

modified:flask/testsuite/ext.py+6 added-1 removed
10 unmodified lines
1112import sys13import unittest14from flask.testsuite import FlaskTestCase15from flask._compat import PY216from six.moves import reload_module1718class ExtImportHookTestCase(FlaskTestCase):19
89 unmodified lines
109 import flask.ext.broken110 except ImportError:111 exc_type, exc_value, tb = sys.exc_info()112 self.assert_true(exc_type is ImportError)113 if PY2:114 message = 'No module named missing_module'115 else:116 message = 'No module named \'missing_module\''112 self.assert_equal(str(exc_value), 'No module named missing_module')117 self.assert_equal(str(exc_value), message)118 self.assert_true(tb.tb_frame.f_globals is globals())119120 next = tb.tb_next121 self.assert_in('flask_broken/__init__.py', next.tb_frame.f_code.co_filename)
6 unmodified lines