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