From 5e5c26966ee3d75c17ca33c9d49f8926aefe735b Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Sun, 13 Dec 2009 17:21:58 -0500 Subject: version_info is a nicer way to check Python versions than hexversion is. --- test/test_oddball.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/test_oddball.py') diff --git a/test/test_oddball.py b/test/test_oddball.py index b102019b..a40fb4c8 100644 --- a/test/test_oddball.py +++ b/test/test_oddball.py @@ -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.""" -- cgit v1.2.1