runtests.py: skip Python 3.3 tests on Python 2

Skip test_tasks.py and test_asyncio_trollius.py on Python < 3.3.
This commit is contained in:
Victor Stinner 2014-08-27 15:53:10 +02:00
parent 6f5ce9bbb8
commit 671cdf2c1d
1 changed files with 5 additions and 0 deletions

View File

@ -99,6 +99,11 @@ def load_modules(basedir, suffix='.py'):
for modname, sourcefile in list_dir('', basedir):
if modname == 'runtests':
continue
if (modname in ('test_tasks', 'test_asyncio_trollius')
and sys.version_info <= (3, 3)):
print("Skipping '{0}': need at least Python 3.3".format(modname),
file=sys.stderr)
continue
try:
mod = load_module(modname, sourcefile)
mods.append((mod, sourcefile))