summaryrefslogtreecommitdiff
path: root/test cases/unit/32 python extmodule/blaster.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2018-05-03 21:05:22 +0300
committerGitHub <noreply@github.com>2018-05-03 21:05:22 +0300
commit211127c834e5399eba11ad7977c85e67e258cf9c (patch)
treec38440e34dc1adc1ca369e4e74708fa704c5724d /test cases/unit/32 python extmodule/blaster.py
parent6c115f1626f9f1f945b3de75ca38f5bc2ac4aad3 (diff)
parent575ffec62e9b24513db48cd5af3a1100fc79143f (diff)
downloadmeson-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-xtest cases/unit/32 python extmodule/blaster.py14
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)