summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2013-10-24 21:08:13 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2013-10-24 21:08:13 (GMT)
commit4f056d43d6ad62d63306cd8a693dda4b52d3ae34 (patch)
tree6a0a25ab2322468c3eb0b0b236e2cae1a634af21 /Lib
parent124a0b314bcd1e3fb4d768e9f0a95242b0e4e2b3 (diff)
parent7d6392c517c6501d79541b4b2bdbfd661b9322a7 (diff)
downloadcpython-4f056d43d6ad62d63306cd8a693dda4b52d3ae34.zip
cpython-4f056d43d6ad62d63306cd8a693dda4b52d3ae34.tar.gz
cpython-4f056d43d6ad62d63306cd8a693dda4b52d3ae34.tar.bz2
Issue #19288: Fixed the "in" operator of dbm.gnu databases for string
argument. Original patch by Arfrever Frehtes Taifersar Arahesis.
Diffstat (limited to 'Lib')
-rwxr-xr-xLib/test/test_dbm_gnu.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_dbm_gnu.py b/Lib/test/test_dbm_gnu.py
index bf62946..4fb66c5 100755
--- a/Lib/test/test_dbm_gnu.py
+++ b/Lib/test/test_dbm_gnu.py
@@ -24,6 +24,7 @@ class TestGdbm(unittest.TestCase):
self.g[b'bytes'] = b'data'
key_set = set(self.g.keys())
self.assertEqual(key_set, set([b'a', b'bytes', b'12345678910']))
+ self.assertIn('a', self.g)
self.assertIn(b'a', self.g)
self.assertEqual(self.g[b'bytes'], b'data')
key = self.g.firstkey()