Skip to content

Commit 7486ea4

Browse files
author
y-p
committed
BUG/TST: importing util.clipboard shouldnt print to stdout (nosetests)
1 parent 59963e3 commit 7486ea4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/util/clipboard.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -133,12 +133,12 @@ def xselGetClipboard():
133133
getcb = macGetClipboard
134134
setcb = macSetClipboard
135135
elif os.name == 'posix' or platform.system() == 'Linux':
136-
xclipExists = os.system('which xclip') == 0
136+
xclipExists = os.system('which xclip > /dev/null') == 0
137137
if xclipExists:
138138
getcb = xclipGetClipboard
139139
setcb = xclipSetClipboard
140140
else:
141-
xselExists = os.system('which xsel') == 0
141+
xselExists = os.system('which xsel > /dev/null') == 0
142142
if xselExists:
143143
getcb = xselGetClipboard
144144
setcb = xselSetClipboard

0 commit comments

Comments
 (0)