You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
qemu/tests/tcg/multiarch/gdbstub
Peter Maydell 424dc390ec tests, scripts: Don't import print_function from __future__
Some of our Python scripts still include the line
  from __future__ import print_function

which is intended to allow a Python 2 to handle the Python 3 print()
syntax. This particular part of the future arrived many years ago,
and our minimum Python version is 3.9, so we don't need to keep
this line around.

NB: the scripts in tests/tcg/*/gdbstub/ are run with whatever Python
gdb was built against, but we can safely assume that that was a
Python 3 because our supported distros are all on Python 3.  In any
case these are only run as part of "make check-tcg", not by
end-users.

Commit created with:

 sed -i -e '/import print_function/d' $(git grep -l 'from __future__')

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: John Snow <jsnow@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-id: 20250819102409.2117969-1-peter.maydell@linaro.org
1 month ago
..
catch-syscalls.py tests/tcg: Add the syscall catchpoint gdbstub test 2 years ago
follow-fork-mode-child.py tests/tcg: Add two follow-fork-mode tests 2 years ago
follow-fork-mode-parent.py tests/tcg: Add two follow-fork-mode tests 2 years ago
interrupt.py tests, scripts: Don't import print_function from __future__ 1 month ago
late-attach.py tests/tcg: Add late gdbstub attach test 8 months ago
memory.py tests, scripts: Don't import print_function from __future__ 1 month ago
prot-none.py tests/tcg: Stop using exit() in the gdbstub testcases 11 months ago
registers.py tests/tcg: Factor out gdbstub test functions 2 years ago
sha1.py tests, scripts: Don't import print_function from __future__ 1 month ago
test-proc-mappings.py tests, scripts: Don't import print_function from __future__ 1 month ago
test-qxfer-auxv-read.py tests, scripts: Don't import print_function from __future__ 1 month ago
test-qxfer-siginfo-read.py tests, scripts: Don't import print_function from __future__ 1 month ago
test-thread-breakpoint.py tests, scripts: Don't import print_function from __future__ 1 month ago