aboutcode-org / aboutcode-org/commoncode

Failure of tests/test_paths.py::TestPortablePath::test_safe_path_posix_style_chinese_char

未關閉
#56 6 則留言 1 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
Python
星號
4
分支
23
PR 合併指標
30 天內沒有已合併 PR

描述

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 =

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
```

貢獻指南

這個儲存庫沒有索引到貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。