Download testbed/huggingface__datasets/tests/_test_patching.py from hc99/FEA-Bench: direct link, hf CLI and curl.
- Browser
- Download file 577 Bytes
-
https://huggingface.co/datasets/hc99/FEA-Bench/resolve/main/testbed/huggingface__datasets/tests/_test_patching.py
- Command line
-
hf download hf://datasets/hc99/FEA-Bench/testbed/huggingface__datasets/tests/_test_patching.py
-
curl -L -o _test_patching.py https://huggingface.co/datasets/hc99/FEA-Bench/resolve/main/testbed/huggingface__datasets/tests/_test_patching.py
577 Bytes
| # isort: skip_file | |
| # This is the module that test_patching.py uses to test patch_submodule() | |
| import os # noqa: F401 - this is just for tests | |
| import os as renamed_os # noqa: F401 - this is just for tests | |
| from os import path # noqa: F401 - this is just for tests | |
| from os import path as renamed_path # noqa: F401 - this is just for tests | |
| from os.path import join # noqa: F401 - this is just for tests | |
| from os.path import join as renamed_join # noqa: F401 - this is just for tests | |
| open = open # noqa we just need to have a builtin inside this module to test it properly | |