YouCompleteMe/python/ycm/tests
Homu e0f2da0885 Auto merge of #2160 - micbou:open-file-encoding, r=Valloric
[READY] Fix LookupError exception when opening a file

Fixes #2159.

I think the issue is caused by `locale.getpreferredencoding()` returning an empty string on some configurations (especially on OS X with Python 2). This is [the value used by default when no encoding is specified](https://docs.python.org/2/library/io.html?highlight=open#io.open). The same error is raised if we do:
```python
open( 'some_file', encoding = '' )
```

For references, similar issues: https://github.com/Valloric/ycmd/issues/395, https://github.com/Valloric/ycmd/issues/419

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/valloric/youcompleteme/2160)
<!-- Reviewable:end -->
2016-05-11 02:01:22 +09:00
..
testdata Now extracting PHP functions. 2014-09-02 10:53:38 -07:00
__init__.py Update flake8 config 2016-03-06 17:39:55 +00:00
base_test.py Update flake8 config 2016-03-06 17:39:55 +00:00
event_notification_test.py Add tests for omni completer GetCompletions 2016-05-08 15:47:58 +01:00
omni_completer_test.py Add tests for omni completer GetCompletions 2016-05-08 15:47:58 +01:00
paths_test.py Starting ycmd with Python used to build it 2016-04-27 19:42:00 -07:00
postcomplete_tests.py Add tests for omni completer GetCompletions 2016-05-08 15:47:58 +01:00
syntax_parse_test.py Fix LookupError exception when opening a file 2016-05-10 16:30:04 +02:00
vimsupport_test.py Fix a number of multi-byte errors and tracebacks 2016-05-08 15:32:36 +01:00
youcompleteme_test.py Simplify YouCompleteMe test 2016-02-29 20:06:01 +01:00