diff options
-rw-r--r-- | Lib/test/test_dumbdbm.py | 2 | ||||
-rw-r--r-- | Lib/test/test_whichdb.py | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/test_dumbdbm.py b/Lib/test/test_dumbdbm.py index d5a74fbf1a..f327a5ae52 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): diff --git a/Lib/test/test_whichdb.py b/Lib/test/test_whichdb.py index d3eda84deb..d1cac1dfc1 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)) |