mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Issue #19288: Fixed the "in" operator of dbm.gnu databases for string
argument. Original patch by Arfrever Frehtes Taifersar Arahesis.
This commit is contained in:
commit
4f056d43d6
3 changed files with 17 additions and 4 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue