diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2016-01-23 19:02:08 -0500 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2016-01-23 19:02:08 -0500 |
commit | 0d02d0716a4ef1ebc139fd12294a641dd95b85f8 (patch) | |
tree | befc651426e53a379b528615bc298e521d576a6c | |
parent | d21192df580d1ef33a04e89af2683af052e98ad3 (diff) | |
download | python-setuptools-bitbucket-0d02d0716a4ef1ebc139fd12294a641dd95b85f8.tar.gz |
Add test capturing failure. Ref #486.
-rw-r--r-- | setuptools/tests/test_unicode_utils.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/setuptools/tests/test_unicode_utils.py b/setuptools/tests/test_unicode_utils.py new file mode 100644 index 00000000..a24a9bd5 --- /dev/null +++ b/setuptools/tests/test_unicode_utils.py @@ -0,0 +1,10 @@ +from setuptools import unicode_utils + + +def test_filesys_decode_fs_encoding_is_None(monkeypatch): + """ + Test filesys_decode does not raise TypeError when + getfilesystemencoding returns None. + """ + monkeypatch.setattr('sys.getfilesystemencoding', lambda: None) + unicode_utils.filesys_decode(b'test') |