diff options
| author | Anthony Sottile <asottile@umich.edu> | 2017-10-19 08:33:55 -0700 |
|---|---|---|
| committer | Anthony Sottile <asottile@umich.edu> | 2017-10-19 08:33:55 -0700 |
| commit | fdcee0259d8a8e632ebbf8153dc6925d81a53553 (patch) | |
| tree | 2fd0ea9571045cdff5a9028345e5a1f6130de842 | |
| parent | 7146aff813694f5bf1142f602083871f7f1326db (diff) | |
| download | flake8-fdcee0259d8a8e632ebbf8153dc6925d81a53553.tar.gz | |
Fix failing encoding test on appveyor
| -rw-r--r-- | tests/unit/test_config_file_finder.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/unit/test_config_file_finder.py b/tests/unit/test_config_file_finder.py index d8502e7..933feb8 100644 --- a/tests/unit/test_config_file_finder.py +++ b/tests/unit/test_config_file_finder.py @@ -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 == [] |
