HansBug / hbutils

Some useful functions and classes in Python infrastructure development
https://hansbug.github.io/hbutils/
Apache License 2.0
10 stars 2 forks source link

dev(hansbug): fix bug for tqdm #98

Closed HansBug closed 1 year ago

HansBug commented 1 year ago

https://github.com/narugo1992/hfmirror/actions/runs/4676972934/jobs/8283928902#step:14:111

Error will be occured on windows when using disable_output and tqdm (with chinese description), like this

with disable_output():
    f = tqdm(total=10)
    f.set_description('你好,这个是中文')
    f.update(5)
codecov[bot] commented 1 year ago

Codecov Report

Patch coverage: 100.00% and project coverage change: -0.51 :warning:

Comparison is base (f780344) 99.58% compared to head (19bea2a) 99.07%.

:exclamation: Current head 19bea2a differs from pull request most recent head d9fe315. Consider uploading reports for the commit d9fe315 to get more accurate results

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #98 +/- ## ========================================== - Coverage 99.58% 99.07% -0.51% ========================================== Files 109 109 Lines 3342 3342 ========================================== - Hits 3328 3311 -17 - Misses 14 31 +17 ``` | Flag | Coverage Δ | | |---|---|---| | unittests | `99.07% <100.00%> (-0.51%)` | :arrow_down: | 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=Hankson+Bradley#carryforward-flags-in-the-pull-request-comment) to find out more. | [Impacted Files](https://codecov.io/gh/HansBug/hbutils/pull/98?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Hankson+Bradley) | Coverage Δ | | |---|---|---| | [hbutils/testing/capture/output.py](https://codecov.io/gh/HansBug/hbutils/pull/98?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Hankson+Bradley#diff-aGJ1dGlscy90ZXN0aW5nL2NhcHR1cmUvb3V0cHV0LnB5) | `100.00% <100.00%> (ø)` | | ... and [3 files with indirect coverage changes](https://codecov.io/gh/HansBug/hbutils/pull/98/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Hankson+Bradley) Help us with your feedback. Take ten seconds to tell us [how you rate us](https://about.codecov.io/nps?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Hankson+Bradley). Have a feature suggestion? [Share it here.](https://app.codecov.io/gh/feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Hankson+Bradley)

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.