Don't run the doctests with Python 2.3 because it doesn't have the ELLIPSIS flag.

This commit is contained in:
Thomas Heller 2006-07-03 07:59:50 +00:00
parent dd854e917f
commit b3c0942356
1 changed files with 8 additions and 4 deletions

View File

@ -54,13 +54,17 @@ of 'x' ('_b_base_' is either None, or the root object owning the memory block):
'''
import unittest, doctest
import unittest, doctest, sys
import ctypes.test.test_objects
class TestCase(unittest.TestCase):
def test(self):
doctest.testmod(ctypes.test.test_objects)
if sys.hexversion > 0x02040000:
# Python 2.3 has no ELLIPSIS flag, so we don't test with this
# version:
def test(self):
doctest.testmod(ctypes.test.test_objects)
if __name__ == '__main__':
doctest.testmod(ctypes.test.test_objects)
if sys.hexversion > 0x02040000:
doctest.testmod(ctypes.test.test_objects)