Skip to content

Commit

Permalink
Fix a flake8 error
Browse files Browse the repository at this point in the history
flake8 (rightly) complains about using `==` to compare types, so this
commit changes that comparison to use `is`.
  • Loading branch information
diazona committed Mar 30, 2024
1 parent 00754ef commit 0c555ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_http.py
Original file line number Diff line number Diff line change
Expand Up @@ -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="<end>")):
if e != a:
message += [
Expand Down

0 comments on commit 0c555ad

Please sign in to comment.