[Python-checkins] r47204 - python/trunk/Lib/ctypes/test/test_objects.py
thomas.heller
python-checkins at python.org
Mon Jul 3 09:59:50 CEST 2006
Author: thomas.heller
Date: Mon Jul 3 09:59:50 2006
New Revision: 47204
Modified:
python/trunk/Lib/ctypes/test/test_objects.py
Log:
Don't run the doctests with Python 2.3 because it doesn't have the ELLIPSIS flag.
Modified: python/trunk/Lib/ctypes/test/test_objects.py
==============================================================================
--- python/trunk/Lib/ctypes/test/test_objects.py (original)
+++ python/trunk/Lib/ctypes/test/test_objects.py Mon Jul 3 09:59:50 2006
@@ -54,13 +54,17 @@
'''
-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)
More information about the Python-checkins
mailing list