[pitivi] prefs: Run tests if run standalone.



commit be7417aff799a097f610dda6c6bbe2c777002c75
Author: Mathieu Duponchelle <mduponchelle1 gmail com>
Date:   Thu Dec 26 16:12:10 2013 +0100

    prefs: Run tests if run standalone.
    
    Instead of having to manually set False to True.

 pitivi/dialogs/prefs.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/pitivi/dialogs/prefs.py b/pitivi/dialogs/prefs.py
index e30c0f3..22df84b 100644
--- a/pitivi/dialogs/prefs.py
+++ b/pitivi/dialogs/prefs.py
@@ -402,7 +402,7 @@ class PreferencesDialog(object):
 
 ## Preference Test Cases
 
-if False:
+if __name__ == "__main__":
 
     from pitivi.settings import GlobalSettings
 


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