davemds pushed a commit to branch master.

http://git.enlightenment.org/bindings/python/python-efl.git/commit/?id=3f064401a159f362dbe6d53b77ea0fec66eb5d3c

commit 3f064401a159f362dbe6d53b77ea0fec66eb5d3c
Author: Dave Andreoli <[email protected]>
Date:   Sun Jan 4 19:42:31 2015 +0100

    Do not fail on SmartObject tests, they are skipped
---
 tests/evas/test_06_object_smart.py            | 38 +++++++++++++--------------
 tests/evas/test_12_object_smart_as_factory.py |  4 +--
 2 files changed, 21 insertions(+), 21 deletions(-)

diff --git a/tests/evas/test_06_object_smart.py 
b/tests/evas/test_06_object_smart.py
index f16b177..b42508b 100644
--- a/tests/evas/test_06_object_smart.py
+++ b/tests/evas/test_06_object_smart.py
@@ -4,25 +4,25 @@ from efl import evas
 import unittest
 
 
-class MyObject(evas.SmartObject):
-    def __init__(self, canvas, *args, **kargs):
-        evas.SmartObject.__init__(self, canvas, *args, **kargs)
-        w, h = self.size
-        w2 = w / 2
-        h2 = h / 2
-        self.r1 = evas.Rectangle(canvas, geometry=(0, 0, w2, h2),
-                                 color="#ff0000")
-        self.member_add(self.r1)
-
-        self.r2 = evas.Rectangle(canvas, geometry=(w2, h2, w2, h2),
-                                 color="#00ff00")
-        self.member_add(self.r2)
-
-    def resize(self, w, h):
-        w2 = w / 2
-        h2 = h / 2
-        self.r1.geometry = (0, 0, w2, h2)
-        self.r2.geometry = (w2, h2, w2, h2)
+#class MyObject(evas.SmartObject):
+#    def __init__(self, canvas, *args, **kargs):
+#        evas.SmartObject.__init__(self, canvas, *args, **kargs)
+#        w, h = self.size
+#        w2 = w / 2
+#        h2 = h / 2
+#        self.r1 = evas.Rectangle(canvas, geometry=(0, 0, w2, h2),
+#                                 color="#ff0000")
+#        self.member_add(self.r1)
+#
+#        self.r2 = evas.Rectangle(canvas, geometry=(w2, h2, w2, h2),
+#                                 color="#00ff00")
+#        self.member_add(self.r2)
+#
+#    def resize(self, w, h):
+#        w2 = w / 2
+#        h2 = h / 2
+#        self.r1.geometry = (0, 0, w2, h2)
+#        self.r2.geometry = (w2, h2, w2, h2)
 
 @unittest.skip("SmartObject disabled")
 class SmartObjectTest(unittest.TestCase):
diff --git a/tests/evas/test_12_object_smart_as_factory.py 
b/tests/evas/test_12_object_smart_as_factory.py
index cd4367c..377de8c 100644
--- a/tests/evas/test_12_object_smart_as_factory.py
+++ b/tests/evas/test_12_object_smart_as_factory.py
@@ -4,8 +4,8 @@ from efl import evas
 import unittest
 
 
-class MyObject(evas.SmartObject):
-    pass
+# class MyObject(evas.SmartObject):
+    # pass
 
 @unittest.skip("SmartObject disabled")
 class CanvasFactory(unittest.TestCase):

-- 


Reply via email to