()
| 6 | |
| 7 | @skip_if_no_x11 |
| 8 | def 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) |
nothing calls this directly
no test coverage detected