()
| 76 | |
| 77 | |
| 78 | def test_extension_builtins(): |
| 79 | em = get_ipython().extension_manager |
| 80 | with TemporaryDirectory() as td: |
| 81 | ext3 = os.path.join(td, "ext3.py") |
| 82 | with open(ext3, "w", encoding="utf-8") as f: |
| 83 | f.write(ext3_content) |
| 84 | |
| 85 | assert "ext3" not in em.loaded |
| 86 | |
| 87 | with prepended_to_syspath(td): |
| 88 | # Load extension |
| 89 | with tt.AssertPrints("True"): |
| 90 | assert em.load_extension("ext3") is None |
| 91 | assert "ext3" in em.loaded |
| 92 | |
| 93 | |
| 94 | def test_non_extension(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…