File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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.
You can’t perform that action at this time.
0 commit comments