diff options
| author | Jussi Pakkanen <jpakkane@gmail.com> | 2018-05-03 21:05:22 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-05-03 21:05:22 +0300 |
| commit | 211127c834e5399eba11ad7977c85e67e258cf9c (patch) | |
| tree | c38440e34dc1adc1ca369e4e74708fa704c5724d /test cases/unit/32 python extmodule/blaster.py | |
| parent | 6c115f1626f9f1f945b3de75ca38f5bc2ac4aad3 (diff) | |
| parent | 575ffec62e9b24513db48cd5af3a1100fc79143f (diff) | |
| download | meson-211127c834e5399eba11ad7977c85e67e258cf9c.tar.gz | |
Merge pull request #3445 from MathieuDuponchelle/pypy_support
python module: make it work with pypy
Diffstat (limited to 'test cases/unit/32 python extmodule/blaster.py')
| -rwxr-xr-x | test cases/unit/32 python extmodule/blaster.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test cases/unit/32 python extmodule/blaster.py b/test cases/unit/32 python extmodule/blaster.py new file mode 100755 index 000000000..163b6d426 --- /dev/null +++ b/test cases/unit/32 python extmodule/blaster.py @@ -0,0 +1,14 @@ +#!/usr/bin/env python + +import sys +import tachyon + +result = tachyon.phaserize('shoot') + +if not isinstance(result, int): + print('Returned result not an integer.') + sys.exit(1) + +if result != 1: + print('Returned result {} is not 1.'.format(result)) + sys.exit(1) |
