Skip to content

Commit 0c555ad

Browse files
committed
Fix a flake8 error
flake8 (rightly) complains about using `==` to compare types, so this commit changes that comparison to use `is`.
1 parent 00754ef commit 0c555ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_http.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ def _compare_chunks(expected, actual):
248248
__tracebackhide__ = True
249249
if expected != actual:
250250
message = [_format_chunk(expected) + " != " + _format_chunk(actual)]
251-
if type(expected) == type(actual):
251+
if type(expected) is type(actual):
252252
for i, (e, a) in enumerate(itertools.zip_longest(expected, actual, fillvalue="<end>")):
253253
if e != a:
254254
message += [

0 commit comments

Comments
 (0)