aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2016-01-23 19:02:08 -0500
committerJason R. Coombs <jaraco@jaraco.com>2016-01-23 19:02:08 -0500
commit3d018c03405ecb21dfb717311f176c6586df343a (patch)
treed3b19b7977c426a335f5444aa133ea742be39932
parent9363ee420bd803f333b31466796ff00a183de66e (diff)
downloadexternal_python_setuptools-3d018c03405ecb21dfb717311f176c6586df343a.tar.gz
external_python_setuptools-3d018c03405ecb21dfb717311f176c6586df343a.tar.bz2
external_python_setuptools-3d018c03405ecb21dfb717311f176c6586df343a.zip
Add test capturing failure. Ref #486.
-rw-r--r--setuptools/tests/test_unicode_utils.py10
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')