From 6a1427401c76db73081e478c4ff49fcc75420de6 Mon Sep 17 00:00:00 2001 From: Eli Schwartz Date: Mon, 6 Mar 2023 21:37:29 -0500 Subject: tests: add a python test for bytecode compilation Some tweaks are added to the test case so that it supports python2 as well. --- test cases/python/2 extmodule/subinst/printer.py | 3 +++ test cases/python/2 extmodule/subinst/submod/printer.py | 3 +++ 2 files changed, 6 insertions(+) create mode 100755 test cases/python/2 extmodule/subinst/printer.py create mode 100755 test cases/python/2 extmodule/subinst/submod/printer.py (limited to 'test cases/python/2 extmodule/subinst') 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') diff --git a/test cases/python/2 extmodule/subinst/submod/printer.py b/test cases/python/2 extmodule/subinst/submod/printer.py new file mode 100755 index 000000000..2a4a61bc9 --- /dev/null +++ b/test cases/python/2 extmodule/subinst/submod/printer.py @@ -0,0 +1,3 @@ +#!/usr/bin/env python3 + +print('subinst.submod') -- cgit v1.2.3