[pitivi/gtktimeline: 19/28] tests:validate: Fix test execution in case xwinfo is not on the system



commit 24d6a66d79b0bf3be9b0c2e69da0efb7b2d909f1
Author: Thibault Saunier <tsaunier gnome org>
Date:   Fri May 1 17:38:28 2015 +0200

    tests:validate: Fix test execution in case xwinfo is not on the system
    
    Summary: subprocess.check_output raised a FileNotFoundError in that case.
    
    Reviewers: Mathieu_Du
    
    Differential Revision: http://phabricator.freedesktop.org/D136

 pitivi/utils/validate.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/pitivi/utils/validate.py b/pitivi/utils/validate.py
index b6ae0c5..61ff5b5 100644
--- a/pitivi/utils/validate.py
+++ b/pitivi/utils/validate.py
@@ -92,7 +92,7 @@ if GstValidate:
                                               " that should not happen, (current windows: %s)"
                                               % windows)
                         break
-            except subprocess.CalledProcessError:
+            except (subprocess.CalledProcessError, FileNotFoundError):
                 pass
 
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]