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:
parent
6f5ce9bbb8
commit
671cdf2c1d
@ -99,6 +99,11 @@ def load_modules(basedir, suffix='.py'):
|
|||||||
for modname, sourcefile in list_dir('', basedir):
|
for modname, sourcefile in list_dir('', basedir):
|
||||||
if modname == 'runtests':
|
if modname == 'runtests':
|
||||||
continue
|
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:
|
try:
|
||||||
mod = load_module(modname, sourcefile)
|
mod = load_module(modname, sourcefile)
|
||||||
mods.append((mod, sourcefile))
|
mods.append((mod, sourcefile))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user