@@ -1374,7 +1374,7 @@ def test_pseudo_raw_input_piped_rawinput_true_echo_true(capsys):
13741374 app , out = piped_rawinput_true (capsys , True , command )
13751375 out = out .splitlines ()
13761376 assert out [0 ] == '{}{}' .format (app .prompt , command )
1377- assert out [1 ] == 'colors: True'
1377+ assert out [1 ]. startswith ( 'colors:' )
13781378
13791379# using the decorator puts the original function at six.moves.input
13801380# back when this method returns
@@ -1384,7 +1384,7 @@ def test_pseudo_raw_input_piped_rawinput_true_echo_false(capsys):
13841384 command = 'set'
13851385 app , out = piped_rawinput_true (capsys , False , command )
13861386 firstline = out .splitlines ()[0 ]
1387- assert firstline == 'colors: True'
1387+ assert firstline . startswith ( 'colors:' )
13881388 assert not '{}{}' .format (app .prompt , command ) in out
13891389
13901390# the next helper function and two tests check for piped
@@ -1404,13 +1404,13 @@ def test_pseudo_raw_input_piped_rawinput_false_echo_true(capsys):
14041404 app , out = piped_rawinput_false (capsys , True , command )
14051405 out = out .splitlines ()
14061406 assert out [0 ] == '{}{}' .format (app .prompt , command )
1407- assert out [1 ] == 'colors: True'
1407+ assert out [1 ]. startswith ( 'colors:' )
14081408
14091409def test_pseudo_raw_input_piped_rawinput_false_echo_false (capsys ):
14101410 command = 'set'
14111411 app , out = piped_rawinput_false (capsys , False , command )
14121412 firstline = out .splitlines ()[0 ]
1413- assert firstline == 'colors: True'
1413+ assert firstline . startswith ( 'colors:' )
14141414 assert not '{}{}' .format (app .prompt , command ) in out
14151415
14161416#
0 commit comments