diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2009-12-13 17:21:58 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2009-12-13 17:21:58 -0500 |
commit | 5e5c26966ee3d75c17ca33c9d49f8926aefe735b (patch) | |
tree | 96e9e9a8550523a6ade00967c823f875d207e330 /test/test_oddball.py | |
parent | 9e134e3f40f34a560860efdb48874f8332629ba4 (diff) | |
download | python-coveragepy-git-5e5c26966ee3d75c17ca33c9d49f8926aefe735b.tar.gz |
version_info is a nicer way to check Python versions than hexversion is.
Diffstat (limited to 'test/test_oddball.py')
-rw-r--r-- | test/test_oddball.py | 2 |
1 files changed, 1 insertions, 1 deletions
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.""" |