test_compat.py
This file
Path
tests/test_compat.py
10 lines · 307 bytes · Python
Last changed by
Merge pull request #1793 from MLH-Fellowship/jupyter-windows-supportDavid Lordbefore adoption0805f60
History of this fileTake it
The walk stopped after 200 commits: lines older than 11e31fd point at it.
Merge pull request #1576 from pallets/dependabot/pip/sphinx-3.1.0dependabot-preview[bot]before adoption11e31fd
lines 1–10why, one step back1from click._compat import should_strip_ansi234def test_is_jupyter_kernel_output():5 class JupyterKernelFakeStream:6 pass78 # implementation detail, aka cheapskate test9 JupyterKernelFakeStream.__module__ = "ipykernel.faked"10 assert not should_strip_ansi(stream=JupyterKernelFakeStream())