Kaydet (Commit) b3c09423 authored tarafından Thomas Heller's avatar Thomas Heller

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

üst dd854e91
...@@ -54,13 +54,17 @@ of 'x' ('_b_base_' is either None, or the root object owning the memory block): ...@@ -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 import ctypes.test.test_objects
class TestCase(unittest.TestCase): class TestCase(unittest.TestCase):
def test(self): if sys.hexversion > 0x02040000:
doctest.testmod(ctypes.test.test_objects) # 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__': if __name__ == '__main__':
doctest.testmod(ctypes.test.test_objects) if sys.hexversion > 0x02040000:
doctest.testmod(ctypes.test.test_objects)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment