Failure of tests/test_paths.py::TestPortablePath::test_safe_path_posix_style_chinese_char
還沒有人認領這個 Issue。
評估
研究方向
先在所述的 Python 3.12 和 Fedora 環境中執行 tests/test_paths.py::TestPortablePath::test_safe_path_posix_style_chinese_char,然後檢查 paths.safe_path 的實作及周邊測試。判斷應如何處理這個位元組序列,並更新實作或測試,使其產生預期的路徑,同時不破壞現有的路徑測試。
由索引模型根據 Issue 內容生成。
描述
Environment:
- Python 3.12.0~rc1
- Fedora Rawhide
- commoncode 31.0.2
The following test fails:
___________ TestPortablePath.test_safe_path_posix_style_chinese_char ___________
self = <test_paths.TestPortablePath testMethod=test_safe_path_posix_style_chinese_char>
def test_safe_path_posix_style_chinese_char(self):
test = paths.safe_path(b'/includes/webform.compon\xd2\xaants.inc/')
expected = 'includes/webform.componNSnts.inc'
> assert test == expected
E AssertionError: assert 'includes/web...mponS_nts.inc' == 'includes/web...mponNSnts.inc'
E - includes/webform.componNSnts.inc
E ? -
E + includes/webform.componS_nts.inc
E ? +
tests/test_paths.py:74: AssertionError
tests/test_paths.py::TestPortablePath::test_safe_path_posix_style_chinese_char
- 主要語言
- Python
- 星號
- 4
- 分支
- 25
- PR 合併指標
- 30 天內沒有已合併 PR
環境準備
這個專案沒有提供開發容器、Dockerfile 或貢獻指南,環境需要你自己搭建:先看它的 README,通用步驟見我們的新手貢獻指南。
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
aboutcode-org/commoncode 的其他 Issue
-
Consider that Resource.parent can be None when removing resources from the codebase可能已有人在做 @Mirochill 於 177 天前認領。 未關閉
難度 2/5 1-3 小時 新手友好度 62/100
aboutcode-org/commoncode#84 ·
-
Click 8.5.0: omitted boolean flags incorrectly trigger conflicting_options validation可能已有人在做 關聯的 PR 仍在進行中或已合併。 未關閉
難度 3/5 1-2 天 新手友好度 66/100
aboutcode-org/commoncode#112 ·
-
難度 4/5 3-5 天 新手友好度 35/100
aboutcode-org/commoncode#102 · 1 則留言 ·
-
難度 4/5 3-5 天 新手友好度 45/100
aboutcode-org/commoncode#101 · 1 則留言 ·
-
mass-scan: Create library to collect a whole project version from Software Heritage可能重新可做 @chinyeungli 於 264 天前認領,目前沒有進行中的 PR。 未關閉
aboutcode-org/commoncode#77 · 7 則留言 · 已指派 1 人 ·
查看 aboutcode-org/commoncode 的全部 Issue
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 76/100
GoogleCloudPlatform/professional-services-data-validator#1899 ·
維護者通常 4 天內回覆
-
難度 2/5 1-3 小時 新手友好度 72/100
mohanraj00/entelos#200 ·
維護者通常 1 天內回覆
-
難度 1/5 1 小時以內 新手友好度 68/100
-
sweep
難度 2/5 1-3 小時 新手友好度 85/100
bketelsen/truenas-mcp#77 ·
維護者通常 1 天內回覆
-
難度 1/5 1 小時以內 新手友好度 86/100
sandbox-quantum/switch#2163 ·
維護者通常 1 天內回覆