on master help sign in
fix a few of the tests
8544133Mason Clayton
tests/python2/ps2.exp+1−7
@@ -7,13 +7,7 @@ expect -exact "--> "
7send -- "if True:\r"
7send -- "if True:\r"
8expect -exact "if True:\r
8expect -exact "if True:\r
9continuation"
9continuation"
10−send -- " print('we "
10+send -- " print('continued!')\r"
11−expect -exact "\[K"
12−send -- ""
13−expect -exact "\[K"
14−send -- ""
15−expect -exact "\[K"
16−send -- "continued!')\r"
17expect -exact "continued!')\r
11expect -exact "continued!')\r
18continuation"
12continuation"
19send -- ""
13send -- ""
tests/python2/stdout_stderr.exp+1−3
@@ -6,9 +6,7 @@ expect -exact "--> "
6send -- "import sys\r"
6send -- "import sys\r"
7expect -exact "import sys\r
7expect -exact "import sys\r
8--> "
8--> "
9−send -- "for i i"
10−expect -exact "\[K"
11−send -- "in range(0, 100):\r"
9+send -- "for i in range(0, 100):\r"
12expect -exact "in range(0, 100):\r
10expect -exact "in range(0, 100):\r
13... "
11... "
14send -- " sys.stderr.write(str(i) + '\\n')\r"
12send -- " sys.stderr.write(str(i) + '\\n')\r"
tests/python3/printing.exp+1−3
@@ -4,9 +4,7 @@ set timeout -1
4spawn ./prybar-python3 -i -q
4spawn ./prybar-python3 -i -q
5match_max 100000
5match_max 100000
6expect -exact "--> "
6expect -exact "--> "
7−send -- "print('"
7+send -- "print('hello!')\r"
8−expect -exact "\[K"
9−send -- "'hello!')\r"
10expect -exact "'hello!')\r
8expect -exact "'hello!')\r
11hello!\r
9hello!\r
12--> "
10--> "