summaryrefslogtreecommitdiff
path: root/test cases/python3/2 extmodule/blaster.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2016-02-26 21:21:53 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2016-02-26 21:21:53 +0200
commitea60a22cd5a2613652942e48e143d7a3da68bbc0 (patch)
treeae351eb81558c49dd7fc76c5ca380e6b6fc99774 /test cases/python3/2 extmodule/blaster.py
parent003696fc27e1f560a8448cc5998443696a162927 (diff)
parentefceac497fa2702124398b2712761015d9a1c78a (diff)
downloadmeson-ea60a22cd5a2613652942e48e143d7a3da68bbc0.tar.gz
Merge Python 3 module support.
Diffstat (limited to 'test cases/python3/2 extmodule/blaster.py')
-rwxr-xr-xtest cases/python3/2 extmodule/blaster.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/test cases/python3/2 extmodule/blaster.py b/test cases/python3/2 extmodule/blaster.py
new file mode 100755
index 000000000..7e1eae63a
--- /dev/null
+++ b/test cases/python3/2 extmodule/blaster.py
@@ -0,0 +1,14 @@
+#!/usr/bin/env python3
+
+import tachyon
+import sys
+
+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)