Hi Kevin, all,

2020-09-21, Kevin Laatz:
> Changed script to explicitly use python3 only to avoid
> maintaining python 2 and removed deprecation notice.
> 
> Cc: Olivier Matz <[email protected]>
> 
> Signed-off-by: Louise Kilheeney <[email protected]>
> Signed-off-by: Kevin Laatz <[email protected]>
> Reviewed-by: Bruce Richardson <[email protected]>
[snip]
> @@ -43,7 +38,7 @@ def runHistoryTest(child):
>      i = 0
>  
>      # fill the history with numbers
> -    while i < history_size / 10:
> +    while i < int(history_size / 10):
>          # add 1 to prevent from parsing as octals
>          child.send("1" + str(i).zfill(8) + cmdline_test_data.ENTER)
>          # the app will simply print out the number

It would be better to use the integer division operator: //

-- 
Robin

Reply via email to