Permalink
Please sign in to comment.
Browse files
Hacky workaround for generator_exception.py bug.
Might come up with something better later. This fixes one Oil unit test failure, still have 3. Move the speed test into test.sh. That's relevant to the bug fix.
- Loading branch information...
Showing
with
91 additions
and 73 deletions.
- +14 −9 opy/byterun/pyobj.py
- +19 −1 opy/byterun/pyvm2.py
- +7 −0 opy/common.sh
- +0 −63 opy/smoke.sh
- +35 −0 opy/test.sh
- +11 −0 opy/testdata/speed.py
- +5 −0 opy/testdata/speed_main.py
| @@ -0,0 +1,11 @@ | ||
| def do_sum(n): | ||
| sum = 0 | ||
| for i in xrange(n): | ||
| sum += i | ||
| print(sum) | ||
| if __name__ == '__main__': | ||
| import sys | ||
| n = int(sys.argv[1]) | ||
| do_sum(n) | ||
| @@ -0,0 +1,5 @@ | ||
| import sys | ||
| import speed | ||
| n = int(sys.argv[1]) | ||
| speed.do_sum(n) |
0 comments on commit
04d9f6c