From 4840fc0edc6609d51342d4c5e21b7843109e3c16 Mon Sep 17 00:00:00 2001 From: Petr Zemek Date: Mon, 27 Oct 2014 11:17:49 +0100 Subject: [PATCH] Change `== None` to `is None`. PEP8 (E711) suggests that comparison to None should be `cond is None`. --- tests/test_appctx.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_appctx.py b/tests/test_appctx.py index eea4e915..a3db4547 100644 --- a/tests/test_appctx.py +++ b/tests/test_appctx.py @@ -41,13 +41,13 @@ def test_request_context_means_app_context(): app = flask.Flask(__name__) with app.test_request_context(): assert flask.current_app._get_current_object() == app - assert flask._app_ctx_stack.top == None + assert flask._app_ctx_stack.top is None def test_app_context_provides_current_app(): app = flask.Flask(__name__) with app.app_context(): assert flask.current_app._get_current_object() == app - assert flask._app_ctx_stack.top == None + assert flask._app_ctx_stack.top is None def test_app_tearing_down(): cleanup_stuff = []