Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#30340 fix unittest and possible mimetypes errors on Win Python v2.7.8
Fixes a unittest issue where the path of some tests would be incorrectly extracted. Closes #74. Fixes a `TypeError` that could arise on Windows using Python v2.7.7/8 if you have NULL bytes in your registry. This is due to a bug in Python (http://bugs.python.org/issue23371) which was addressed in v2.7.9. The fix catches the exception that would be raised and loads the bundled and patched mimetypes library instead. Closes #88 Thanks to @patrickwolf for the reports and info
- Loading branch information
KP
committed
Sep 15, 2015
1 parent
8f5f51f
commit 1109d20
Showing
4 changed files
with
15 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters