diff options
| author | Gregory P. Smith <greg@mad-scientist.com> | 2009-07-04 08:42:10 (GMT) |
|---|---|---|
| committer | Gregory P. Smith <greg@mad-scientist.com> | 2009-07-04 08:42:10 (GMT) |
| commit | 1844b0d7481d0790909627e4a166ef046df2c590 (patch) | |
| tree | bf851db345c8b7ec2cf1288a0dc447313a0c18f4 /Lib/sqlite3/test/py25tests.py | |
| parent | cd947e0c6af9b81d5069cb57080f1d0eedec7bfd (diff) | |
| download | cpython-1844b0d7481d0790909627e4a166ef046df2c590.zip cpython-1844b0d7481d0790909627e4a166ef046df2c590.tar.gz cpython-1844b0d7481d0790909627e4a166ef046df2c590.tar.bz2 | |
Merge r73838 from py3k branch. Use the nondeprecated unittest method
names.
Diffstat (limited to 'Lib/sqlite3/test/py25tests.py')
| -rw-r--r-- | Lib/sqlite3/test/py25tests.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/sqlite3/test/py25tests.py b/Lib/sqlite3/test/py25tests.py index bce26b9..7fd3c0e 100644 --- a/Lib/sqlite3/test/py25tests.py +++ b/Lib/sqlite3/test/py25tests.py @@ -54,19 +54,19 @@ class ContextTests(unittest.TestCase): self.con.execute("insert into test(c) values ('foo')") self.con.rollback() count = self.con.execute("select count(*) from test").fetchone()[0] - self.failUnlessEqual(count, 1) + self.assertEqual(count, 1) def CheckContextManagerRollback(self): """Is a rollback called in the context manager?""" global did_rollback - self.failUnlessEqual(did_rollback, False) + self.assertEqual(did_rollback, False) try: with self.con: self.con.execute("insert into test(c) values (4)") self.con.execute("insert into test(c) values (4)") except sqlite.IntegrityError: pass - self.failUnlessEqual(did_rollback, True) + self.assertEqual(did_rollback, True) def suite(): ctx_suite = unittest.makeSuite(ContextTests, "Check") |
