()
| 32 | |
| 33 | |
| 34 | def test_import_ipython_handles_stdout_without_isatty(): |
| 35 | code = """ |
| 36 | import sys |
| 37 | |
| 38 | class DummyFile: |
| 39 | def write(self, *args, **kwargs): |
| 40 | pass |
| 41 | |
| 42 | def flush(self): |
| 43 | pass |
| 44 | |
| 45 | sys.stdout = DummyFile() |
| 46 | import IPython |
| 47 | """ |
| 48 | repo_root = Path(__file__).resolve().parents[1] |
| 49 | result = subprocess.run( |
| 50 | [sys.executable, "-c", code], |
| 51 | cwd=repo_root, |
| 52 | capture_output=True, |
| 53 | text=True, |
| 54 | ) |
| 55 | assert result.returncode == 0, result.stderr |
| 56 | |
| 57 | |
| 58 | def test_supports_kitty_graphics_handles_psutil_access_denied(monkeypatch): |
nothing calls this directly
no test coverage detected
searching dependent graphs…