Skip to content
This repository was archived by the owner on Apr 30, 2021. It is now read-only.

Commit 11078d0

Browse files
committed
Update the executable used to run the examples to be the same as harness.
In order to have an easy way to control which python runs the examples, make the python version used into the one used by the harness itself. That way if you invoke it with Python 3, it'll test with Python 3.
1 parent c5a5ea8 commit 11078d0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎examples/run_all_examples.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ def main():
169169
any_failed = False
170170
for example in find_examples():
171171
print("Example: {}".format(example.name))
172-
result = example.run(runs=args.runs)
172+
result = example.run(python=sys.executable, runs=args.runs)
173173
result.show(indent=' ')
174174
if not args.keep:
175175
if result.fail_file:

0 commit comments

Comments
 (0)