소스 검색

Fix failing tests

Oz N Tiram 8 년 전
부모
커밋
f76b5dd13d
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      pwman/__init__.py
  2. 1 1
      tests/test_tools.py

+ 1 - 1
pwman/__init__.py

@@ -97,7 +97,7 @@ def get_conf(args):
 
 def set_xsel(configp, OSX):
     if not OSX:
-        xselpath = shutil.which("xsel")
+        xselpath = shutil.which("xsel") or ""
         configp.set_value("Global", "xsel", xselpath)
     elif OSX:
         pbcopypath = shutil.which("pbcopy")

+ 1 - 1
tests/test_tools.py

@@ -106,7 +106,7 @@ class SetupTester(object):
                                )
 
         if not OSX:
-            self.xselpath = shutil.which("xsel")
+            self.xselpath = shutil.which("xsel") or ""
             self.configp.set_value("Global", "xsel", self.xselpath)
         else:
             self.xselpath = "xsel"