Skip to content

Commit 8722348

Browse files
author
Ubuntu
committed
E721 errors raised by flake8
1 parent d9c8ac8 commit 8722348

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
@@ -1738,7 +1738,7 @@ def test_construction(self):
17381738
certificate = X509()
17391739
assert isinstance(certificate, X509)
17401740
assert type(certificate).__name__ == "X509"
1741-
assert type(certificate) == X509
1741+
assert type(certificate) is X509
17421742

17431743
def test_set_version_wrong_args(self):
17441744
"""
@@ -3146,7 +3146,7 @@ def test_construction(self):
31463146
"""
31473147
revoked = Revoked()
31483148
assert isinstance(revoked, Revoked)
3149-
assert type(revoked) == Revoked
3149+
assert type(revoked) is Revoked
31503150
assert revoked.get_serial() == b"00"
31513151
assert revoked.get_rev_date() is None
31523152
assert revoked.get_reason() is None
@@ -3441,8 +3441,8 @@ def test_get_revoked(self):
34413441

34423442
revs = crl.get_revoked()
34433443
assert len(revs) == 2
3444-
assert type(revs[0]) == Revoked
3445-
assert type(revs[1]) == Revoked
3444+
assert type(revs[0]) is Revoked
3445+
assert type(revs[1]) is Revoked
34463446
assert revs[0].get_serial() == b"03AB"
34473447
assert revs[1].get_serial() == b"0100"
34483448
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
@@ -191,7 +191,7 @@ def join_bytes_or_unicode(prefix, suffix):
191191
The return type is the same as the type of ``prefix``.
192192
"""
193193
# If the types are the same, nothing special is necessary.
194-
if type(prefix) == type(suffix):
194+
if type(prefix) is type(suffix):
195195
return join(prefix, suffix)
196196

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

0 commit comments

Comments
 (0)