summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2013-10-24 21:06:52 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2013-10-24 21:06:52 (GMT)
commit7d6392c517c6501d79541b4b2bdbfd661b9322a7 (patch)
tree24c52ab5ecee266172aea43a5d57358969f898f8 /Lib/test
parent9da33ab193803922141f654f6d3cccdaed6b4866 (diff)
downloadcpython-7d6392c517c6501d79541b4b2bdbfd661b9322a7.zip
cpython-7d6392c517c6501d79541b4b2bdbfd661b9322a7.tar.gz
cpython-7d6392c517c6501d79541b4b2bdbfd661b9322a7.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/test')
-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()