gpt2-small-repla / gpt2eval_env /lib /python3.11 /site-packages /setuptools /tests /test_unicode_utils.py
Download gpt2eval_env/lib/python3.11/site-packages/setuptools/tests/test_unicode_utils.py from michaelxing/gpt2-small-repla: direct link, hf CLI and curl.
- Browser
- Download file 316 Bytes
-
https://huggingface.co/michaelxing/gpt2-small-repla/resolve/main/gpt2eval_env/lib/python3.11/site-packages/setuptools/tests/test_unicode_utils.py
- Command line
-
hf download hf://michaelxing/gpt2-small-repla/gpt2eval_env/lib/python3.11/site-packages/setuptools/tests/test_unicode_utils.py
-
curl -L -o test_unicode_utils.py https://huggingface.co/michaelxing/gpt2-small-repla/resolve/main/gpt2eval_env/lib/python3.11/site-packages/setuptools/tests/test_unicode_utils.py
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') | |