fgimian / paramiko-expect

A Python expect-like extension for the Paramiko SSH library which also supports tailing logs.
MIT License
205 stars 78 forks source link

Fix encoding issue of test on python 2.7 #78

Closed fruch closed 2 years ago

fruch commented 2 years ago

test were failing cause of the lack of encoding on the default output function

    def default_output_func(msg):
>       sys.stdout.write(msg)
E       UnicodeEncodeError: 'ascii' codec can't encode characters in position 13-27: ordinal not in range(128)
codecov[bot] commented 2 years ago

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@69e033b). Click here to learn what that means. The diff coverage is 88.88%.

:exclamation: Current head 1582160 differs from pull request most recent head fcc4a74. Consider uploading reports for the commit fcc4a74 to get more accurate results Impacted file tree graph

@@            Coverage Diff            @@
##             master      #78   +/-   ##
=========================================
  Coverage          ?   97.41%           
=========================================
  Files             ?        1           
  Lines             ?      155           
  Branches          ?        0           
=========================================
  Hits              ?      151           
  Misses            ?        4           
  Partials          ?        0           
Impacted Files Coverage Δ
paramiko_expect.py 97.41% <88.88%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 69e033b...fcc4a74. Read the comment docs.