summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_dbm.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2018-06-19 10:31:48 (GMT)
committerGitHub <noreply@github.com>2018-06-19 10:31:48 (GMT)
commit22525de737679ace1488e63b7ed289bdb253ffc7 (patch)
tree23074afdc912dd46d1b703ee3ab0b3f0967ecedc /Lib/test/test_dbm.py
parentfc93bd467e7a00f12a4f17e27f0f7a0b2c590880 (diff)
downloadcpython-22525de737679ace1488e63b7ed289bdb253ffc7.zip
cpython-22525de737679ace1488e63b7ed289bdb253ffc7.tar.gz
cpython-22525de737679ace1488e63b7ed289bdb253ffc7.tar.bz2
Use more specific asserts in dbm tests. (GH-7786)
This may help to investigate bpo-33901.
Diffstat (limited to 'Lib/test/test_dbm.py')
-rw-r--r--Lib/test/test_dbm.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_dbm.py b/Lib/test/test_dbm.py
index 1884b5c..1db3bef 100644
--- a/Lib/test/test_dbm.py
+++ b/Lib/test/test_dbm.py
@@ -160,7 +160,7 @@ class WhichDBTestCase(unittest.TestCase):
# and test that we can find it
self.assertIn(b"1", f)
# and read it
- self.assertTrue(f[b"1"] == b"1")
+ self.assertEqual(f[b"1"], b"1")
f.close()
self.assertEqual(name, self.dbm.whichdb(_fname))