mirror of
https://github.com/PyCQA/flake8.git
synced 2026-03-31 19:26:52 +00:00
Merge branch 'fix_encoding_test' into 'master'
Fix failing encoding test on appveyor See merge request pycqa/flake8!209
This commit is contained in:
commit
4d0f313122
1 changed files with 2 additions and 2 deletions
|
|
@ -143,7 +143,7 @@ def test_read_config_catches_broken_config_files(files):
|
|||
def test_read_config_catches_decoding_errors(tmpdir):
|
||||
"""Verify that we do not allow the exception to bubble up."""
|
||||
setup_cfg = tmpdir.join('setup.cfg')
|
||||
# pick an encoding that's unlikely to be a default
|
||||
setup_cfg.write_binary(u'[x]\ny = €'.encode('cp1252'))
|
||||
# pick bytes that are unlikely to decode
|
||||
setup_cfg.write_binary(b'[x]\ny = \x81\x8d\x90\x9d')
|
||||
_, parsed = config.ConfigFileFinder._read_config(setup_cfg.strpath)
|
||||
assert parsed == []
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue