]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/testsuite/gdb.gdb/python-interrupts.exp
Fix prints in tests for Python 3
[thirdparty/binutils-gdb.git] / gdb / testsuite / gdb.gdb / python-interrupts.exp
index a41fc0c56d749dbffe214c6cbe34356786178869..5a54801c65199d7724e8acb3eab0922787316883 100644 (file)
@@ -25,7 +25,7 @@ proc test_python_interrupts {} {
     }
 
     gdb_breakpoint set_active_ext_lang temporary
-    gdb_test "call catch_command_errors(execute_command, \"python print 5\", 0, RETURN_MASK_ALL)" \
+    gdb_test "call catch_command_errors(execute_command, \"python print(5)\", 0, RETURN_MASK_ALL)" \
        "Temporary breakpoint.*silently stop."
     gdb_test "signal SIGINT" \
        "KeyboardInterrupt.*Error while executing Python code."