43"""Remove test methods that do not work with the current lib version. 44 """ 45find_required_version=version_dict.get 46defdummy_test_method(self): 47pass

48fornameindir(test_class): 49expected_version=find_required_version(name,(0,0,0)) 50ifexpected_version>current_version: 51setattr(test_class,name,dummy_test_method) 52 53try: 54importdoctest 55# check if the system version has everything we need 56doctest.DocFileSuite 57doctest.DocTestParser 58doctest.NORMALIZE_WHITESPACE 59doctest.ELLIPSIS 60except(ImportError,AttributeError): 61# we need our own version to make it work (Python 2.3?) 62importlocal_doctestasdoctest 63 64try: 65sorted 66exceptNameError: