diff options
author | Simon Marchi <simon.marchi@ericsson.com> | 2015-07-07 11:39:06 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@ericsson.com> | 2015-07-07 11:39:06 -0400 |
commit | 3e221d361f5647b56b7cc3ebf5ff487f417ceed0 (patch) | |
tree | 1a7fd150ded2a5caf02fa3fc2ae005a79ffac00c /gdb/testsuite/gdb.python | |
parent | d441430b752a617fe476e745b95f544fe4463fec (diff) | |
download | binutils-3e221d361f5647b56b7cc3ebf5ff487f417ceed0.zip binutils-3e221d361f5647b56b7cc3ebf5ff487f417ceed0.tar.gz binutils-3e221d361f5647b56b7cc3ebf5ff487f417ceed0.tar.bz2 |
Fix test for Python 3
gdb/testsuite/ChangeLog:
* gdb.python/py-lazy-string.exp: Add missing parentheses to
print.
Diffstat (limited to 'gdb/testsuite/gdb.python')
-rw-r--r-- | gdb/testsuite/gdb.python/py-lazy-string.exp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/testsuite/gdb.python/py-lazy-string.exp b/gdb/testsuite/gdb.python/py-lazy-string.exp index 55e903e..4b98b08 100644 --- a/gdb/testsuite/gdb.python/py-lazy-string.exp +++ b/gdb/testsuite/gdb.python/py-lazy-string.exp @@ -36,7 +36,7 @@ gdb_continue_to_breakpoint "break here" gdb_test_no_output "python null = gdb.parse_and_eval(\"null\")" -gdb_test "python print null.lazy_string(length=0).value()" \ +gdb_test "python print(null.lazy_string(length=0).value())" \ "gdb.MemoryError: Cannot create a value from NULL.*Error while executing Python code." -gdb_test "python print null.lazy_string(length=3).value()" \ +gdb_test "python print(null.lazy_string(length=3).value())" \ "gdb.MemoryError: Cannot create a lazy string with address 0x0, and a non-zero length.*Error while executing Python code." |