correct the type compare the updated flake8 found
This commit is contained in:
@@ -374,7 +374,7 @@ def test_unserialize_warning_msg(w_cls):
|
|||||||
v1 = getattr(w_msg, k)
|
v1 = getattr(w_msg, k)
|
||||||
v2 = getattr(w_msg2, k)
|
v2 = getattr(w_msg2, k)
|
||||||
if k == "message":
|
if k == "message":
|
||||||
assert type(v1) == type(v2)
|
assert type(v1) is type(v2)
|
||||||
assert v1.args == v2.args
|
assert v1.args == v2.args
|
||||||
else:
|
else:
|
||||||
assert v1 == v2
|
assert v1 == v2
|
||||||
|
|||||||
Reference in New Issue
Block a user