[libical-glib] Attempt to fix the issues in tests/array.py for i_cal_array_append. The second argument in Python fo



commit e975eb5ddc51419c807a022f8d3e44ce230f42a8
Author: William Yu <williamyu gnome org>
Date:   Mon Mar 16 21:33:01 2015 -0400

    Attempt to fix the issues in tests/array.py for i_cal_array_append. The second argument in Python for 
void * could only be integers, capsules and None

 tests/array.py |   20 ++++++++++----------
 1 files changed, 10 insertions(+), 10 deletions(-)
---
diff --git a/tests/array.py b/tests/array.py
index ae53593..eb56920 100755
--- a/tests/array.py
+++ b/tests/array.py
@@ -7,11 +7,11 @@ from sys import getsizeof
 
 array = ICalGLib.Array.new(100, 100);
 
-element1 = "hello";
-element2 = "world";
-element3 = "how";
-element4 = "are";
-element5 = "you";
+element1 = 1;
+element2 = 2 ;
+element3 = 3;
+element4 = 4;
+element5 = 5;
 
 #TEST APPEND
 array.append (element1);
@@ -49,11 +49,11 @@ array.remove_element_at (2);
 e3 = array.element_at(2);
 assert (element4 == e3);
 
-attach1 = ICalGLib.Attach.new_from_url (element1);
-attach2 = ICalGLib.Attach.new_from_url (element2);
-attach3 = ICalGLib.Attach.new_from_url (element3);
-attach4 = ICalGLib.Attach.new_from_url (element4);
-attach5 = ICalGLib.Attach.new_from_url (element5);
+attach1 = ICalGLib.Attach.new_from_url ("hello");
+attach2 = ICalGLib.Attach.new_from_url ("world");
+attach3 = ICalGLib.Attach.new_from_url ("how");
+attach4 = ICalGLib.Attach.new_from_url ("are");
+attach5 = ICalGLib.Attach.new_from_url ("you");
 
 def my_cmp(a, b): 
     return cmp(a.get_url(), b.get_url());


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