aboutcode-org / aboutcode-org/commoncode

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

Offen
#56 6 Kommentare 1 Reaktion 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Python
Sterne
4
Forks
23
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

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

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.