• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1from setuptools import unicode_utils
2
3
4def test_filesys_decode_fs_encoding_is_None(monkeypatch):
5    """
6    Test filesys_decode does not raise TypeError when
7    getfilesystemencoding returns None.
8    """
9    monkeypatch.setattr('sys.getfilesystemencoding', lambda: None)
10    unicode_utils.filesys_decode(b'test')
11