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 摘要。