mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
use assert[Not]In where appropriate
This commit is contained in:
parent
0f77f465ff
commit
b58e0bd8bb
39 changed files with 176 additions and 173 deletions
|
@ -93,7 +93,7 @@ class AnyDBMTestCase(unittest.TestCase):
|
|||
self.init_db()
|
||||
f = dbm.open(_fname, 'r')
|
||||
key = "a".encode("ascii")
|
||||
assert(key in f)
|
||||
self.assertIn(key, f)
|
||||
assert(f[key] == b"Python:")
|
||||
f.close()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue