PageRenderTime 11ms CodeModel.GetById 8ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/Lib/distutils/tests/test_versionpredicate.py

http://unladen-swallow.googlecode.com/
Python | 15 lines | 9 code | 2 blank | 4 comment | 1 complexity | 273b54ec0cd14ad34d34d2abfb138064 MD5 | raw file
 1"""Tests harness for distutils.versionpredicate.
 2
 3"""
 4
 5import distutils.versionpredicate
 6import doctest
 7import sys
 8import unittest
 9
10def test_suite():
11    # Docstrings are omitted at this optimization level, so skip all doctests.
12    if sys.flags.optimize >= 2:
13        return unittest.TestSuite()
14    else:
15        return doctest.DocTestSuite(distutils.versionpredicate)