Skip to content

download_tests.py::test_config fails under python 3.14 #823

@sarahec

Description

@sarahec
trafilatura> _________________________________ test_config __________________________________
trafilatura> 
trafilatura>     def test_config():
trafilatura>         '''Test how configuration options are read and stored.'''
trafilatura>         # default config is none
trafilatura>         assert _parse_config(DEFAULT_CONFIG) == (None, None)
trafilatura>         # default accept-encoding
trafilatura>         accepted = ['deflate', 'gzip']
trafilatura>         if HAS_BROTLI:
trafilatura>             accepted.append('br')
trafilatura>         if HAS_ZSTD:
trafilatura>             accepted.append('zstd')
trafilatura> >       assert sorted(DEFAULT_HEADERS['accept-encoding'].split(',')) == sorted(accepted)
trafilatura> E       AssertionError: assert ['deflate', 'gzip', 'zstd'] == ['deflate', 'gzip']
trafilatura> E         
trafilatura> E         Left contains one more item: 'zstd'
trafilatura> E         Use -v to get more diff
trafilatura> 
trafilatura> tests/downloads_tests.py:209: AssertionError

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions