Skip to content
Myr

add utf8 with bom to test

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Eduardo Rodrigues · committed by Eduardo Rodrigues · parent c9309e4 · Browse files · 2 files+4 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+4 added−0 removed

  • tests:+1 added−0 removed
  • other:+3 added−0 removed

2 files+4 added−0 removed

modified:tests/test_utils.py+1 added
330 unmodified lines
331 assert guess_json_utf(b'\x00\x00\x00\x00') is None332333 @pytest.mark.parametrize(334 ('encoding', 'expected'), (335 ('utf-8-sig', 'utf-8'),336 ('utf-16-be', 'utf-16'),337 ('utf-16-le', 'utf-16'),338 ('utf-32-be', 'utf-32'),339 ('utf-32-le', 'utf-32')
444 unmodified lines
modified:.gitignore+3 added
12 unmodified lines
13*.pyc14*.swp15*.egg16env/17.venv/18.eggs/19.tox/2021.workon2223t.py
5 unmodified lines