Download gpt2eval_env/lib/python3.11/site-packages/setuptools/tests/test_extern.py from michaelxing/gpt2-small-repla: direct link, hf CLI and curl.
- Browser
- Download file 296 Bytes
-
https://huggingface.co/michaelxing/gpt2-small-repla/resolve/main/gpt2eval_env/lib/python3.11/site-packages/setuptools/tests/test_extern.py
- Command line
-
hf download hf://michaelxing/gpt2-small-repla/gpt2eval_env/lib/python3.11/site-packages/setuptools/tests/test_extern.py
-
curl -L -o test_extern.py https://huggingface.co/michaelxing/gpt2-small-repla/resolve/main/gpt2eval_env/lib/python3.11/site-packages/setuptools/tests/test_extern.py
296 Bytes
| import importlib | |
| import pickle | |
| import packaging | |
| from setuptools import Distribution | |
| def test_reimport_extern(): | |
| packaging2 = importlib.import_module(packaging.__name__) | |
| assert packaging is packaging2 | |
| def test_distribution_picklable(): | |
| pickle.loads(pickle.dumps(Distribution())) | |