From: Romain Naour <romain.naour@gmail.com>
To: buildroot@buildroot.org
Cc: Romain Naour <romain.naour@gmail.com>
Subject: [Buildroot] [PATCH 1/4] support/testing: add python-mako runtime test
Date: Fri, 9 Jun 2023 19:49:52 +0200 [thread overview]
Message-ID: <20230609174955.409551-1-romain.naour@gmail.com> (raw)
This new runtime test allows to reproduce the issue
reported by https://bugs.busybox.net/show_bug.cgi?id=15628
with a simple python script.
Traceback (most recent call last):
File "/bin/piglit", line 107, in <module>
import framework.programs.summary as summary
File "/usr/lib64/piglit/framework/programs/summary.py", line 30, in <module>
from framework import summary, status, core, backends, exceptions
File "/usr/lib64/piglit/framework/summary/__init__.py", line 31, in <module>
from .html_ import html, feat
File "/usr/lib64/piglit/framework/summary/html_.py", line 37, in <module>
from mako.lookup import TemplateLookup
File "/usr/lib/python3.11/site-packages/mako/lookup.py", line 13, in <module>
File "/usr/lib/python3.11/site-packages/mako/exceptions.py", line 292, in <module>
File "/usr/lib/python3.11/site-packages/mako/exceptions.py", line 289, in _install_highlighting
File "/usr/lib/python3.11/site-packages/mako/exceptions.py", line 277, in _install_fallback
File "/usr/lib/python3.11/site-packages/mako/filters.py", line 14, in <module>
ModuleNotFoundError: No module named 'markupsafe
Signed-off-by: Romain Naour <romain.naour@gmail.com>
---
support/testing/tests/package/sample_python_mako.py | 1 +
support/testing/tests/package/test_python_mako.py | 12 ++++++++++++
2 files changed, 13 insertions(+)
create mode 100644 support/testing/tests/package/sample_python_mako.py
create mode 100644 support/testing/tests/package/test_python_mako.py
diff --git a/support/testing/tests/package/sample_python_mako.py b/support/testing/tests/package/sample_python_mako.py
new file mode 100644
index 0000000000..aedae7ebad
--- /dev/null
+++ b/support/testing/tests/package/sample_python_mako.py
@@ -0,0 +1 @@
+from mako import runtime
diff --git a/support/testing/tests/package/test_python_mako.py b/support/testing/tests/package/test_python_mako.py
new file mode 100644
index 0000000000..b6075bde6a
--- /dev/null
+++ b/support/testing/tests/package/test_python_mako.py
@@ -0,0 +1,12 @@
+from tests.package.test_python import TestPythonPackageBase
+
+
+class TestPythonPy3Mako(TestPythonPackageBase):
+ __test__ = True
+ config = TestPythonPackageBase.config + \
+ """
+ BR2_PACKAGE_PYTHON3=y
+ BR2_PACKAGE_PYTHON_MAKO=y
+ """
+ sample_scripts = ["tests/package/sample_python_mako.py"]
+ timeout = 30
--
2.40.1
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
next reply other threads:[~2023-06-09 17:50 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-09 17:49 Romain Naour [this message]
2023-06-09 17:49 ` [Buildroot] [PATCH 2/4] package/python-mako: add optionnal runtime dependency on python-pygments Romain Naour
2023-09-30 18:55 ` Thomas Petazzoni via buildroot
2023-06-09 17:49 ` [Buildroot] [PATCH 3/4] package/python-mako: add optionnal runtime dependency on python-babel Romain Naour
2023-09-30 18:55 ` Thomas Petazzoni via buildroot
2023-06-09 17:49 ` [Buildroot] [PATCH 4/4] support/testing: TestPythonPy3MakoExt: add a test for mako external plugin (pygmentsplugin, babel) Romain Naour
2023-09-30 18:55 ` Thomas Petazzoni via buildroot
2023-07-12 19:43 ` [Buildroot] [PATCH 1/4] support/testing: add python-mako runtime test Thomas Petazzoni via buildroot
2023-07-12 19:46 ` Thomas Petazzoni via buildroot
2023-07-13 7:36 ` Romain Naour
2023-07-13 7:42 ` Romain Naour
2023-07-13 9:43 ` Sebastian WEYER
2023-09-30 18:55 ` Thomas Petazzoni via buildroot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230609174955.409551-1-romain.naour@gmail.com \
--to=romain.naour@gmail.com \
--cc=buildroot@buildroot.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox