mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
Fixed several assertTrue() that were intended to be assertEqual(). (GH-8191)
Fixed also testing the "always" warning filter.
This commit is contained in:
parent
c287545d62
commit
b796e7dcdc
6 changed files with 13 additions and 9 deletions
|
@ -5843,7 +5843,7 @@ class LinuxKernelCryptoAPI(unittest.TestCase):
|
|||
op=socket.ALG_OP_ENCRYPT, iv=iv)
|
||||
enc = op.recv(msglen * multiplier)
|
||||
self.assertEqual(len(enc), msglen * multiplier)
|
||||
self.assertTrue(enc[:msglen], ciphertext)
|
||||
self.assertEqual(enc[:msglen], ciphertext)
|
||||
|
||||
op, _ = algo.accept()
|
||||
with op:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue