aboutcode-org / aboutcode-org/commoncode

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

オープン
#56 コメント 6 件 リアクション 1 件 担当者 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 を短くまとめたダイジェスト。