diff --git a/airflow/www/app.py b/airflow/www/app.py index ca0589d669a2b..e9b2c35db32af 100644 --- a/airflow/www/app.py +++ b/airflow/www/app.py @@ -144,11 +144,7 @@ def integrate_plugins(): # required for testing purposes otherwise the module retains # a link to the default_auth if app.config['TESTING']: - if six.PY2: - reload(e) - else: - import importlib - importlib.reload(e) + six.moves.reload_module(e) app.register_blueprint(e.api_experimental, url_prefix='/api/experimental')