UnicodeEncodeError: 'charmap' codec can't encode character '\u2713' in position 484025: character maps to <undefined>
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 35/100
- issue の種類
- バグ
- 明瞭さ
- 説明が足りない
- 活発さ
- 停滞
- 技術スタック
- python
- 領域
- testing-qa
調査の方向性
pytest_html/html_report.py の pytest_sessionfinish と _save_report から始め、pathlib.Path.write_text が Windows 上でレポートをどのように処理するかを確認します。✓ を含む HTML レポートを生成する実行を再現します。報告された UnicodeEncodeError が発生せずにレポートが書き込まれれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Getting UnicodeEncodeError: 'charmap' codec can't encode character '\u2713' in position 484025: character maps to intermittently. When most of the testcase failed, getting above error while generating html report
FFFF.FF.F..FFFFFF.FF.FFFFF.FFFFFFF.FF.FFF.FFFFFFFFFFF.FF..F.FFF [100%]Traceback (most recent call last):
File "c:\program files\python37\lib\runpy.py", line 193, in run_module_as_main
"main", mod_spec)
File "c:\program files\python37\lib\runpy.py", line 85, in run_code
exec(code, run_globals)
File "C:\Program Files\Python37\Scripts\py.test.exe_main.py", line 9, in
sys.exit(console_main())
File "c:\program files\python37\lib\site-packages_pytest\config_init.py", line 189, in console_main
code = main()
File "c:\program files\python37\lib\site-packages_pytest\config_init_.py", line 167, in main
config=config
File "c:\program files\python37\lib\site-packages\pluggy_hooks.py", line 433, in call
return self._hookexec(self.name, self._hookimpls, kwargs, firstresult)
File "c:\program files\python37\lib\site-packages\pluggy_manager.py", line 112, in _hookexec
return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
File "c:\program files\python37\lib\site-packages\pluggy_callers.py", line 116, in _multicall
raise exception.with_traceback(exception.traceback)
File "c:\program files\python37\lib\site-packages\pluggy_callers.py", line 80, in _multicall
res = hook_impl.function(*args)
File "c:\program files\python37\lib\site-packages_pytest\main.py", line 317, in pytest_cmdline_main
return wrap_session(config, _main)
File "c:\program files\python37\lib\site-packages_pytest\main.py", line 306, in wrap_session
session=session, exitstatus=session.exitstatus
File "c:\program files\python37\lib\site-packages\pluggy_hooks.py", line 433, in call
return self._hookexec(self.name, self._hookimpls, kwargs, firstresult)
File "c:\program files\python37\lib\site-packages\pluggy_manager.py", line 112, in _hookexec
return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
File "c:\program files\python37\lib\site-packages\pluggy_callers.py", line 133, in _multicall
teardown[0].send(outcome)
File "c:\program files\python37\lib\site-packages_pytest\terminal.py", line 857, in pytest_sessionfinish
outcome.get_result()
File "c:\program files\python37\lib\site-packages\pluggy_result.py", line 108, in get_result
raise exc.with_traceback(exc.traceback)
File "c:\program files\python37\lib\site-packages\pluggy_callers.py", line 80, in _multicall
res = hook_impl.function(*args)
File "c:\program files\python37\lib\site-packages\pytest_html\html_report.py", line 333, in pytest_sessionfinish
self._save_report(report_content)
File "c:\program files\python37\lib\site-packages\pytest_html\html_report.py", line 259, in _save_report
self.logfile.write_text(report_content)
File "c:\program files\python37\lib\pathlib.py", line 1226, in write_text
return f.write(data)
File "c:\program files\python37\lib\encodings\cp1252.py", line 19, in encode
return codecs.charmap_encode(input,self.errors,encoding_table)[0]
UnicodeEncodeError: 'charmap' codec can't encode character '\u2713' in position 484025: character maps to
- 主要言語
- Python
- スター
- 779
- フォーク
- 259
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
pytest-dev/pytest-html のほかの issue
-
難易度 3/5 1〜2日 初心者へのやさしさ 68/100
pytest-dev/pytest-html#1077 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 42/100
pytest-dev/pytest-html#1039 ·
-
Feature: pluggable HTML themes via Jinja2 template inheritance対応中かも @RonnyPfannschmidt が 141 日前に担当しました。 オープン
pytest-dev/pytest-html#1029 · リアクション 1 件 · 担当者 1 名 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 55/100
pytest-dev/pytest-html#1027 ·
-
pytest-html does not escape HTML in testId (v4.2.0)対応中かも @golikovichev が 124 日前に担当しました。 オープン
難易度 3/5 1〜2日 初心者へのやさしさ 55/100
pytest-dev/pytest-html#1024 ·
pytest-dev/pytest-html の issue をすべて見る
似ている issue
-
難易度 1/5 1〜3時間 初心者へのやさしさ 87/100
adri0/scadustats#128 ·
メンテナーはふだん 1 日以内に返信
-
`TIMESTAMP`, `TIMESTAMP_NTZ`, `TINYINT` and the other `TypeDecorator`s don't declare `python_type`オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
RPBCオープンawaiting policy acceptance precheck-passed
難易度 1/5 1時間未満 初心者へのやさしさ 78/100
Bioconductor/BiocContributions#240 · コメント 1 件 ·
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
documentation good first issue launch
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
FlologixAI/etchwork#4 ·