From 7486ea4d72f169aca42bd2434c3a1894689a99ea Mon Sep 17 00:00:00 2001 From: y-p Date: Sun, 1 Dec 2013 14:58:16 +0200 Subject: [PATCH] BUG/TST: importing util.clipboard shouldnt print to stdout (nosetests) --- pandas/util/clipboard.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pandas/util/clipboard.py b/pandas/util/clipboard.py index 3008a5d606c90..65c372bf7cd5b 100644 --- a/pandas/util/clipboard.py +++ b/pandas/util/clipboard.py @@ -133,12 +133,12 @@ def xselGetClipboard(): getcb = macGetClipboard setcb = macSetClipboard elif os.name == 'posix' or platform.system() == 'Linux': - xclipExists = os.system('which xclip') == 0 + xclipExists = os.system('which xclip > /dev/null') == 0 if xclipExists: getcb = xclipGetClipboard setcb = xclipSetClipboard else: - xselExists = os.system('which xsel') == 0 + xselExists = os.system('which xsel > /dev/null') == 0 if xselExists: getcb = xselGetClipboard setcb = xselSetClipboard