on master help sign in
fix a few of the tests
commit8544133b9fce51fa8945cc9a78c4d23eb073ef82 authorMason Clayton <masongclayton@gmail.com> dateFri 26 Oct 2018, 20:07 (8 years ago) parent5414900
3 files changed+3−13
tests/python2/ps2.exp+1−7 tests/python2/stdout_stderr.exp+1−3 tests/python3/printing.exp+1−3
tests/python2/ps2.exp+1−7
@@ -7,13 +7,7 @@ expect -exact "--> "
77send -- "if True:\r"
88expect -exact "if True:\r
99continuation"
10−send -- " print('we "
11−expect -exact "\[K"
12−send -- ""
13−expect -exact "\[K"
14−send -- ""
15−expect -exact "\[K"
16−send -- "continued!')\r"
10+send -- " print('continued!')\r"
1711expect -exact "continued!')\r
1812continuation"
1913send -- ""
tests/python2/stdout_stderr.exp+1−3
@@ -6,9 +6,7 @@ expect -exact "--> "
66send -- "import sys\r"
77expect -exact "import sys\r
88--> "
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"
1210expect -exact "in range(0, 100):\r
1311... "
1412send -- " sys.stderr.write(str(i) + '\\n')\r"
tests/python3/printing.exp+1−3
@@ -4,9 +4,7 @@ set timeout -1
44spawn ./prybar-python3 -i -q
55match_max 100000
66expect -exact "--> "
7−send -- "print('"
8−expect -exact "\[K"
9−send -- "'hello!')\r"
7+send -- "print('hello!')\r"
108expect -exact "'hello!')\r
119hello!\r
1210--> "