Message ID | 63cce688a1678382e065dcd1905b7ed6a48d7ce5.1658581474.git.yann.morin.1998@free.fr |
---|---|
State | Accepted |
Headers | show |
Series | package/python: allow building without python on the host (branch yem/python) | expand |
diff --git a/support/testing/tests/package/test_python.py b/support/testing/tests/package/test_python.py index f29aff6624..c4f5d66d59 100644 --- a/support/testing/tests/package/test_python.py +++ b/support/testing/tests/package/test_python.py @@ -27,7 +27,7 @@ class TestPythonBase(infra.basetest.BRTest): self.assertRunOk(cmd, timeout) def libc_time_test(self, timeout=-1): - cmd = self.interpreter + " -c 'from __future__ import print_function;" + cmd = self.interpreter + " -c '" cmd += "import ctypes;" cmd += "libc = ctypes.cdll.LoadLibrary(\"libc.so.1\");" cmd += "print(libc.time(None))'"
Now that we only have python3, we will never have to test a python2-based build, so we can drop python2 compatibility cruft. In python3, print already is a function, we don't need to import it from the future. Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr> Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com> --- support/testing/tests/package/test_python.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)