diff options
author | Benjamin Peterson <benjamin@python.org> | 2009-06-30 22:57:08 +0000 |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2009-06-30 22:57:08 +0000 |
commit | 5c8da86f3a515ce1a6d5f27fd15e3c5f4d8e931e (patch) | |
tree | 41f38aca16748628d53906337f06fdf087f52314 /Lib/test/test_hotshot.py | |
parent | be96cf608fa656d7e53144cf85082ed5661e8c13 (diff) | |
download | cpython-git-5c8da86f3a515ce1a6d5f27fd15e3c5f4d8e931e.tar.gz |
convert usage of fail* to assert*
Diffstat (limited to 'Lib/test/test_hotshot.py')
-rw-r--r-- | Lib/test/test_hotshot.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/test/test_hotshot.py b/Lib/test/test_hotshot.py index fa6b2f1629..38a8dddb6a 100644 --- a/Lib/test/test_hotshot.py +++ b/Lib/test/test_hotshot.py @@ -64,11 +64,11 @@ class HotShotTestCase(unittest.TestCase): def run_test(self, callable, events, profiler=None): if profiler is None: profiler = self.new_profiler() - self.failUnless(not profiler._prof.closed) + self.assertTrue(not profiler._prof.closed) profiler.runcall(callable) - self.failUnless(not profiler._prof.closed) + self.assertTrue(not profiler._prof.closed) profiler.close() - self.failUnless(profiler._prof.closed) + self.assertTrue(profiler._prof.closed) self.check_events(events) def test_addinfo(self): @@ -80,7 +80,7 @@ class HotShotTestCase(unittest.TestCase): log = self.get_logreader() info = log._info list(log) - self.failUnless(info["test-key"] == ["test-value"]) + self.assertTrue(info["test-key"] == ["test-value"]) def test_line_numbers(self): def f(): |