summaryrefslogtreecommitdiff
path: root/test cases/python/2 extmodule/subinst/printer.py
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz@archlinux.org>2023-03-06 21:37:29 -0500
committerEli Schwartz <eschwartz@archlinux.org>2023-05-02 19:28:35 -0400
commit6a1427401c76db73081e478c4ff49fcc75420de6 (patch)
treebb7790eb92ef6da31ffcff79da0fadb8d4c796c2 /test cases/python/2 extmodule/subinst/printer.py
parent0e7fb07f915b7a2b04df209fbacd92aca19c87af (diff)
downloadmeson-6a1427401c76db73081e478c4ff49fcc75420de6.tar.gz
tests: add a python test for bytecode compilation
Some tweaks are added to the test case so that it supports python2 as well.
Diffstat (limited to 'test cases/python/2 extmodule/subinst/printer.py')
-rwxr-xr-xtest cases/python/2 extmodule/subinst/printer.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/test cases/python/2 extmodule/subinst/printer.py b/test cases/python/2 extmodule/subinst/printer.py
new file mode 100755
index 000000000..8bc528dfe
--- /dev/null
+++ b/test cases/python/2 extmodule/subinst/printer.py
@@ -0,0 +1,3 @@
+#!/usr/bin/env python3
+
+print('subinst')