Download lib/python3.9/site-packages/IPython/utils/tests/test_shimmodule.py from camenduru/slahmr-test: direct link, hf CLI and curl.
- Browser
- Download file 387 Bytes
-
https://huggingface.co/camenduru/slahmr-test/resolve/main/lib/python3.9/site-packages/IPython/utils/tests/test_shimmodule.py
- Command line
-
hf download hf://camenduru/slahmr-test/lib/python3.9/site-packages/IPython/utils/tests/test_shimmodule.py
-
curl -L -o test_shimmodule.py https://huggingface.co/camenduru/slahmr-test/resolve/main/lib/python3.9/site-packages/IPython/utils/tests/test_shimmodule.py
387 Bytes
| from IPython.utils.shimmodule import ShimModule | |
| import IPython | |
| def test_shimmodule_repr_does_not_fail_on_import_error(): | |
| shim_module = ShimModule("shim_module", mirror="mirrored_module_does_not_exist") | |
| repr(shim_module) | |
| def test_shimmodule_repr_forwards_to_module(): | |
| shim_module = ShimModule("shim_module", mirror="IPython") | |
| assert repr(shim_module) == repr(IPython) | |