Commit 26feeb40 authored by Denis Bilenko's avatar Denis Bilenko

test___monkey_patching.py: don't fail if no tests are available for this version

parent 57810ff5
......@@ -16,6 +16,8 @@ def get_absolute_pythonpath():
def TESTRUNNER(tests=None):
if not os.path.exists(directory):
return
preferred_version = open(os.path.join(directory, 'version')).read().strip()
if preferred_version != version:
util.log('WARNING: The tests in %s/ are from version %s and your Python is %s', directory, preferred_version, version)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment