|
@@ -1538,7 +1538,7 @@ class PLinkSSHVendorTests(TestCase):
|
|
|
)
|
|
|
|
|
|
for w in warnings_list:
|
|
|
- if type(w) == type(expected_warning) and w.args == expected_warning.args:
|
|
|
+ if type(w) is type(expected_warning) and w.args == expected_warning.args:
|
|
|
break
|
|
|
else:
|
|
|
raise AssertionError(
|
|
@@ -1583,7 +1583,7 @@ class PLinkSSHVendorTests(TestCase):
|
|
|
)
|
|
|
|
|
|
for w in warnings_list:
|
|
|
- if type(w) == type(expected_warning) and w.args == expected_warning.args:
|
|
|
+ if type(w) is type(expected_warning) and w.args == expected_warning.args:
|
|
|
break
|
|
|
else:
|
|
|
raise AssertionError(
|