From 0c555ad2f2202f669bde224a66684c2bea5d26f6 Mon Sep 17 00:00:00 2001 From: David Zaslavsky Date: Fri, 29 Mar 2024 23:29:28 -0700 Subject: [PATCH] Fix a flake8 error flake8 (rightly) complains about using `==` to compare types, so this commit changes that comparison to use `is`. --- tests/test_http.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_http.py b/tests/test_http.py index f76771b..904e6ae 100644 --- a/tests/test_http.py +++ b/tests/test_http.py @@ -248,7 +248,7 @@ def _compare_chunks(expected, actual): __tracebackhide__ = True if expected != actual: message = [_format_chunk(expected) + " != " + _format_chunk(actual)] - if type(expected) == type(actual): + if type(expected) is type(actual): for i, (e, a) in enumerate(itertools.zip_longest(expected, actual, fillvalue="")): if e != a: message += [