diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2013-10-24 21:01:25 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2013-10-24 21:01:25 (GMT) |
commit | 124a0b314bcd1e3fb4d768e9f0a95242b0e4e2b3 (patch) | |
tree | 6613daade78e7ec142236c425df7fe98b56d27b0 /Lib/test/test_dbm_ndbm.py | |
parent | 7cb11fa89034a06dcad58b65a0321dae9171dbea (diff) | |
parent | 9da33ab193803922141f654f6d3cccdaed6b4866 (diff) | |
download | cpython-124a0b314bcd1e3fb4d768e9f0a95242b0e4e2b3.zip cpython-124a0b314bcd1e3fb4d768e9f0a95242b0e4e2b3.tar.gz cpython-124a0b314bcd1e3fb4d768e9f0a95242b0e4e2b3.tar.bz2 |
Issue #19287: Fixed the "in" operator of dbm.ndbm databases for string
argument. Original patch by Arfrever Frehtes Taifersar Arahesis.
Diffstat (limited to 'Lib/test/test_dbm_ndbm.py')
-rwxr-xr-x | Lib/test/test_dbm_ndbm.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_dbm_ndbm.py b/Lib/test/test_dbm_ndbm.py index f9d3bef..b57e1f0 100755 --- a/Lib/test/test_dbm_ndbm.py +++ b/Lib/test/test_dbm_ndbm.py @@ -24,6 +24,7 @@ class DbmTestCase(unittest.TestCase): self.d[b'bytes'] = b'data' self.d['12345678910'] = '019237410982340912840198242' self.d.keys() + self.assertIn('a', self.d) self.assertIn(b'a', self.d) self.assertEqual(self.d[b'bytes'], b'data') self.d.close() |