diff options
author | Gregory P. Smith <greg@mad-scientist.com> | 2007-08-24 22:14:21 (GMT) |
---|---|---|
committer | Gregory P. Smith <greg@mad-scientist.com> | 2007-08-24 22:14:21 (GMT) |
commit | c3ee950979cf3b9220dd51774b57b6208c4f315c (patch) | |
tree | 712e003c8934d4c73fada7ba54f5586c2d30e25f /Lib/test/test_dumbdbm.py | |
parent | 178fefb9b5de5aa7db33e691ce2760c54097718b (diff) | |
download | cpython-c3ee950979cf3b9220dd51774b57b6208c4f315c.zip cpython-c3ee950979cf3b9220dd51774b57b6208c4f315c.tar.gz cpython-c3ee950979cf3b9220dd51774b57b6208c4f315c.tar.bz2 |
follow up to bug 1007 commit.
Use self.assertTrue in test cases rather than the assert statement.
Diffstat (limited to 'Lib/test/test_dumbdbm.py')
-rw-r--r-- | Lib/test/test_dumbdbm.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_dumbdbm.py b/Lib/test/test_dumbdbm.py index d5a74fb..f327a5a 100644 --- a/Lib/test/test_dumbdbm.py +++ b/Lib/test/test_dumbdbm.py @@ -92,7 +92,7 @@ class DumbDBMTestCase(unittest.TestCase): def test_write_contains(self): f = dumbdbm.open(_fname) f[b'1'] = b'hello' - assert b'1' in f + self.assertTrue(b'1' in f) f.close() def test_write_write_read(self): |