summaryrefslogtreecommitdiffstats
path: root/Lib/ctypes
diff options
context:
space:
mode:
authorThomas Heller <theller@ctypes.org>2006-07-03 07:59:50 (GMT)
committerThomas Heller <theller@ctypes.org>2006-07-03 07:59:50 (GMT)
commitb3c0942356bcf592097f658bdfc2daf6dad7b346 (patch)
tree0f03bcfd58b1d7c11697200ca61cc6bd33ddbc1c /Lib/ctypes
parentdd854e917f5e983b784cdf151518de58568d4a51 (diff)
downloadcpython-b3c0942356bcf592097f658bdfc2daf6dad7b346.zip
cpython-b3c0942356bcf592097f658bdfc2daf6dad7b346.tar.gz
cpython-b3c0942356bcf592097f658bdfc2daf6dad7b346.tar.bz2
Don't run the doctests with Python 2.3 because it doesn't have the ELLIPSIS flag.
Diffstat (limited to 'Lib/ctypes')
-rw-r--r--Lib/ctypes/test/test_objects.py12
1 files changed, 8 insertions, 4 deletions
diff --git a/Lib/ctypes/test/test_objects.py b/Lib/ctypes/test/test_objects.py
index e49e435..4d921d2 100644
--- a/Lib/ctypes/test/test_objects.py
+++ b/Lib/ctypes/test/test_objects.py
@@ -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)