summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_socket.py
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2018-07-09 15:54:27 (GMT)
committerGitHub <noreply@github.com>2018-07-09 15:54:27 (GMT)
commit13d1025e43068ba9f9da32b2e19f53bba9d91806 (patch)
treeaad86c721e7006659f79d625c6b3096cf5a00c98 /Lib/test/test_socket.py
parentd73497ba52171bc8f786a70ecf50d3104b596221 (diff)
downloadcpython-13d1025e43068ba9f9da32b2e19f53bba9d91806.zip
cpython-13d1025e43068ba9f9da32b2e19f53bba9d91806.tar.gz
cpython-13d1025e43068ba9f9da32b2e19f53bba9d91806.tar.bz2
Fixed several assertTrue() that were intended to be assertEqual(). (GH-8191)
Fixed also testing the "always" warning filter. (cherry picked from commit b796e7dcdc24ff7ec53044af041254c83a8ace21) Co-authored-by: Sergey Fedoseev <fedoseev.sergey@gmail.com>
Diffstat (limited to 'Lib/test/test_socket.py')
-rw-r--r--Lib/test/test_socket.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_socket.py b/Lib/test/test_socket.py
index e41ddfd..7735786 100644
--- a/Lib/test/test_socket.py
+++ b/Lib/test/test_socket.py
@@ -5490,7 +5490,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: