diff options
Diffstat (limited to 'test/test_oddball.py')
| -rw-r--r-- | test/test_oddball.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_oddball.py b/test/test_oddball.py index 05252ef..a40fb4c 100644 --- a/test/test_oddball.py +++ b/test/test_oddball.py @@ -92,7 +92,7 @@ class MemoryLeakTest(CoverageTest): self.check_coverage(code.replace("ITERS", "10000"), lines, "") ram_2 = osinfo.process_ram() ram_growth = (ram_2 - ram_1) - (ram_1 - ram_0) - self.assert_(ram_growth < 100000, "RAM grew by %d" % (ram_growth)) + self.assertTrue(ram_growth < 100000, "RAM grew by %d" % (ram_growth)) class PyexpatTest(CoverageTest): @@ -245,7 +245,7 @@ class ExceptionTest(CoverageTest): self.assertEqual(clean_lines, lines_expected) -if sys.hexversion > 0x02050000: +if sys.version_info >= (2, 5): class DoctestTest(CoverageTest): """Tests invoked with doctest should measure properly.""" |
