full python 2.5-3.2 compatibility. but 2.5 isn't fully tested, because that's not possible

This commit is contained in:
David Halter
2012-07-13 15:34:51 +02:00
parent 4ee9faacec
commit 8b8b0f920d
4 changed files with 56 additions and 85 deletions

View File

@@ -126,6 +126,9 @@ def test_dir(completion_test_dir, third_party=False):
global tests_pass
for f_name in os.listdir(completion_test_dir):
if len(sys.argv) == 1 or [a for a in sys.argv[1:] if a in f_name]:
if sys.hexversion < 0x02060000 \
and f_name in ['generators.py', 'types.py']:
continue
if f_name.endswith(".py"):
if third_party:
try: