This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH 2/3] Fix Python help() test for Python 3
- From: Simon Marchi <simon dot marchi at ericsson dot com>
- To: gdb-patches at sourceware dot org
- Cc: simon dot marchi at polymtl dot ca, Simon Marchi <simon dot marchi at ericsson dot com>
- Date: Tue, 25 Nov 2014 23:36:00 -0500
- Subject: [PATCH 2/3] Fix Python help() test for Python 3
- Authentication-results: sourceware.org; auth=none
- References: <1416976561-1927-1-git-send-email-simon dot marchi at ericsson dot com>
The message displayed when using help() changed a bit with time, so this
adjusts the test accordingly.
gdb/testsuite/ChangeLog:
* gdb.python/python.exp: Change expected reply to help().
---
gdb/testsuite/gdb.python/python.exp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gdb/testsuite/gdb.python/python.exp b/gdb/testsuite/gdb.python/python.exp
index 787a294..7b4a5b8 100644
--- a/gdb/testsuite/gdb.python/python.exp
+++ b/gdb/testsuite/gdb.python/python.exp
@@ -67,7 +67,7 @@ gdb_py_test_multiple "multi-line python command" \
with_test_prefix "python interactive help" {
set test "python; help(); end"
gdb_test_multiple "python\nhelp()\nend" $test {
- -re "online help utility.*help> $" {
+ -re "Welcome to Python.*help utility.*help> $" {
pass $test
# The "quit" must be seen on the output. A buggy GDB
--
2.1.3