Skip to content
Myr

py3 compat: use six.reload_module

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

authored by Thomas Waldmann · committed by Thomas Waldmann · parent 522cd00 · Browse files · 1 file+2 added−2 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+2 added−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:flask/testsuite/ext.py+2 added-2 removed
11 unmodified lines
1213import sys14import unittest15from flask.testsuite import FlaskTestCase16from six import reload_module171718class ExtImportHookTestCase(FlaskTestCase):1920 def setup(self):21 # we clear this out for various reasons. The most important one is
6 unmodified lines
28 entry.startswith('flaskext.') or29 entry == 'flaskext') and value is not None:30 sys.modules.pop(entry, None)31 from flask import ext32 reload(ext)32 reload_module(ext)3334 # reloading must not add more hooks35 import_hooks = 036 for item in sys.meta_path:
87 unmodified lines