Small fixes

test_pyenvlib.py: it is sys.exit(), not exit()
pysource.py: reinstate nod type of async_func_call
This commit is contained in:
rocky
2017-09-20 11:27:01 -04:00
parent d7b12f4da1
commit 147b6e1cfe
2 changed files with 4 additions and 3 deletions

View File

@@ -169,13 +169,13 @@ def do_tests(src_dir, obj_patterns, target_dir, opts):
main(src_dir, target_dir, files, [],
do_verify=opts['do_verify'])
if failed_files != 0:
exit(2)
sys.exit(2)
elif failed_verify != 0:
exit(3)
sys.exit(3)
except (KeyboardInterrupt, OSError):
print()
exit(1)
sys.exit(1)
if test_opts['rmtree']:
parent_dir = os.path.dirname(target_dir)
print("Everything good, removing %s" % parent_dir)

View File

@@ -408,6 +408,7 @@ class SourceWalker(GenericASTTraversal, object):
self.template_engine(('%c(%P)', 0,
(1, -4, ', ', 100)), node)
self.prec = p
node.type == 'async_call_function'
self.prune()
self.n_async_call_function = n_async_call_function
self.n_build_list_unpack = self.n_build_list