Azure / LinuxPatchExtension

Microsoft Azure VM Guest Linux Patch Extension
Apache License 2.0
10 stars 8 forks source link

address the stringio getvalue not found error in ut #275

Open feng-j678 opened 9 hours ago

feng-j678 commented 9 hours ago

[x] do a try catch import on StringIO fix 'file' object has no attribute 'getvalue' in py2 image

codecov[bot] commented 9 hours ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 91.11%. Comparing base (82f45bb) to head (8bf1403).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #275 +/- ## ======================================= Coverage 91.10% 91.11% ======================================= Files 91 91 Lines 15893 15901 +8 ======================================= + Hits 14480 14488 +8 Misses 1413 1413 ``` | [Flag](https://app.codecov.io/gh/Azure/LinuxPatchExtension/pull/275/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Azure) | Coverage Δ | | |---|---|---| | [python27](https://app.codecov.io/gh/Azure/LinuxPatchExtension/pull/275/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Azure) | `91.11% <100.00%> (+<0.01%)` | :arrow_up: | | [python39](https://app.codecov.io/gh/Azure/LinuxPatchExtension/pull/275/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Azure) | `91.11% <100.00%> (+<0.01%)` | :arrow_up: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Azure#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.