Skip to content

Commit 1508c4b

Browse files
authored
fix for E721 errors raised by flake8 (#1289)
1 parent 7f3e4f9 commit 1508c4b

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

tests/test_crypto.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1740,7 +1740,7 @@ def test_construction(self):
17401740
certificate = X509()
17411741
assert isinstance(certificate, X509)
17421742
assert type(certificate).__name__ == "X509"
1743-
assert type(certificate) == X509
1743+
assert type(certificate) is X509
17441744

17451745
def test_set_version_wrong_args(self):
17461746
"""
@@ -3148,7 +3148,7 @@ def test_construction(self):
31483148
"""
31493149
revoked = Revoked()
31503150
assert isinstance(revoked, Revoked)
3151-
assert type(revoked) == Revoked
3151+
assert type(revoked) is Revoked
31523152
assert revoked.get_serial() == b"00"
31533153
assert revoked.get_rev_date() is None
31543154
assert revoked.get_reason() is None
@@ -3443,8 +3443,8 @@ def test_get_revoked(self):
34433443

34443444
revs = crl.get_revoked()
34453445
assert len(revs) == 2
3446-
assert type(revs[0]) == Revoked
3447-
assert type(revs[1]) == Revoked
3446+
assert type(revs[0]) is Revoked
3447+
assert type(revs[1]) is Revoked
34483448
assert revs[0].get_serial() == b"03AB"
34493449
assert revs[1].get_serial() == b"0100"
34503450
assert revs[0].get_rev_date() == now

tests/test_ssl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ def join_bytes_or_unicode(prefix, suffix):
190190
The return type is the same as the type of ``prefix``.
191191
"""
192192
# If the types are the same, nothing special is necessary.
193-
if type(prefix) == type(suffix):
193+
if type(prefix) is type(suffix):
194194
return join(prefix, suffix)
195195

196196
# Otherwise, coerce suffix to the type of prefix.

0 commit comments

Comments
 (0)