elpy
elpy copied to clipboard
Fix potential bug in test_black.py
PR Summary
The test test_fix_code_should_throw_error_without_black_installed was not considering that "blackutil.fix_code" could raise another exception then the desired "Fault" exception. This would lead to a failure in the following tests since "blackutil.black would be reset to its original value, and thus producing a false negative in the process.
PR checklist
Please make sure that the following things have been addressed (and check the relevant checkboxes):
- [x] Commits respect our guidelines
- [ ] Tests are passing properly (see here on how to run Elpy's tests)