We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b03ed56 commit ac8ae60Copy full SHA for ac8ae60
pandas/io/tests/test_clipboard.py
@@ -10,12 +10,13 @@
10
from pandas import get_option
11
from pandas.util import testing as tm
12
from pandas.util.testing import makeCustomDataframe as mkdf
13
+from pandas.util.clipboard.exceptions import PyperclipException
14
15
16
try:
- import pandas.util.clipboard # noqa
17
-except OSError:
18
- raise nose.SkipTest("no clipboard found")
+ DataFrame({'A': [1, 2]}).to_clipboard()
+except PyperclipException:
19
+ raise nose.SkipTest("clipboard primitives not installed")
20
21
22
class TestClipboard(tm.TestCase):
0 commit comments