summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_whichdb.py
diff options
context:
space:
mode:
authorGregory P. Smith <greg@mad-scientist.com>2007-08-24 22:14:21 (GMT)
committerGregory P. Smith <greg@mad-scientist.com>2007-08-24 22:14:21 (GMT)
commitc3ee950979cf3b9220dd51774b57b6208c4f315c (patch)
tree712e003c8934d4c73fada7ba54f5586c2d30e25f /Lib/test/test_whichdb.py
parent178fefb9b5de5aa7db33e691ce2760c54097718b (diff)
downloadcpython-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_whichdb.py')
-rw-r--r--Lib/test/test_whichdb.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_whichdb.py b/Lib/test/test_whichdb.py
index d3eda84..d1cac1d 100644
--- a/Lib/test/test_whichdb.py
+++ b/Lib/test/test_whichdb.py
@@ -35,9 +35,9 @@ class WhichDBTestCase(unittest.TestCase):
f = module.open(_fname, 'w')
f[b"1"] = b"1"
# and test that we can find it
- assert b"1" in f
+ self.assertTrue(b"1" in f)
# and read it
- assert f[b"1"] == b"1"
+ self.assertTrue(f[b"1"] == b"1")
f.close()
self.assertEqual(name, whichdb.whichdb(_fname))