env-full / lib /python3.12 /site-packages /setuptools /tests /test_unicode_utils.py
ZhengyangZhang's picture
Add files using upload-large-folder tool
5a5320a verified
Raw History Blame
316 Bytes
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')