From 7d97459836913a8f1186def24a91699a1a6c20cd Mon Sep 17 00:00:00 2001 From: virus Date: Wed, 22 May 2019 21:50:41 +0900 Subject: [PATCH] use isinstance for check type --- tests/test_commands_cache.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_commands_cache.py b/tests/test_commands_cache.py index 003b8362b..b01c15479 100644 --- a/tests/test_commands_cache.py +++ b/tests/test_commands_cache.py @@ -23,7 +23,7 @@ def test_commands_cache_lazy(xonsh_builtins): def test_predict_threadable_unknown_command(xonsh_builtins): cc = CommandsCache() result = cc.predict_threadable(["command_should_not_found"]) - assert type(result) == bool + assert isinstance(result, bool) TRUE_SHELL_ARGS = [