@given(origin(), new_origin())
> def test_lookup_origins_get_by_sha1s(origin, unknown_origin):
.tox/py3/lib/python3.7/site-packages/swh/web/tests/common/test_archive.py:996:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
origin = {'archives': ['libtess2.zip'], 'type': 'git', 'url': 'https://github.com/memononen/libtess2'}
unknown_origin = Origin(url='git://a.é')
@given(origin(), new_origin())
def test_lookup_origins_get_by_sha1s(origin, unknown_origin):
hasher = hashlib.sha1()
hasher.update(origin["url"].encode("ascii"))
origin_info = OriginInfo(url=origin["url"])
origin_sha1 = hasher.hexdigest()
hasher = hashlib.sha1()
> hasher.update(unknown_origin.url.encode("ascii"))
E UnicodeEncodeError: 'ascii' codec can't encode character '\xe9' in position 8: ordinal not in range(128)
.tox/py3/lib/python3.7/site-packages/swh/web/tests/common/test_archive.py:1003: UnicodeEncodeError
TEST RESULT
TEST RESULT
- Run At
- Jul 6 2021, 12:18 PM