MCPcopy Create free account
hub / github.com/ipython/ipython / test_clipboard_get

Function test_clipboard_get

IPython/lib/tests/test_clipboard.py:8–21  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6
7@skip_if_no_x11
8def test_clipboard_get():
9 # Smoketest for clipboard access - we can't easily guarantee that the
10 # clipboard is accessible and has something on it, but this tries to
11 # exercise the relevant code anyway.
12 try:
13 a = get_ipython().hooks.clipboard_get()
14 except ClipboardEmpty:
15 # Nothing in clipboard to get
16 pass
17 except TryNext:
18 # No clipboard access API available
19 pass
20 else:
21 nt.assert_is_instance(a, str)

Callers

nothing calls this directly

Calls 1

get_ipythonFunction · 0.50

Tested by

no test coverage detected