[libical-glib] Attempt to fix the issues in timezone.py for the size of builtin timezones. Different machines may p



commit 11377bb502eda851c65a7b989537c1282ee19eb9
Author: William Yu <williamyu gnome org>
Date:   Tue Mar 17 09:31:35 2015 -0400

    Attempt to fix the issues in timezone.py for the size of builtin timezones. Different machines may 
produce different number of builtin timezones.

 tests/timezone.py |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/tests/timezone.py b/tests/timezone.py
index 2656c6d..07f771c 100755
--- a/tests/timezone.py
+++ b/tests/timezone.py
@@ -15,8 +15,7 @@ assert la_copy.get_location() == la.get_location();
 timezones = ICalGLib.Timezone.get_builtin_timezones();
 timezone = ICalGLib.Timezone.array_element_at(timezones, 0);
 assert timezone.get_display_name() == "Europe/Andorra";
-#Commented out is due to the unexpectable output value of timezones.size()
-#assert timezones.size() == 415;
+assert timezones.size() > 0;
 
 
 from_tzid = ICalGLib.Timezone.get_builtin_timezone_from_tzid (la.get_tzid());


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