[pygobject] Fix typo in previous commit



commit 2158ecd05a2770d6538bae67d01d1f718855a7d4
Author: Martin Pitt <martinpitt gnome org>
Date:   Thu Apr 19 16:12:29 2012 +0200

    Fix typo in previous commit
    
    In the test case, actually assign the newly created object, so that we test the
    properties of the right object.

 tests/test_everything.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/tests/test_everything.py b/tests/test_everything.py
index 9ecbbf9..d00f4f2 100644
--- a/tests/test_everything.py
+++ b/tests/test_everything.py
@@ -540,7 +540,7 @@ class TestProperties(unittest.TestCase):
         object_.props.gtype = int
         self.assertEquals(object_.props.gtype, GObject.TYPE_INT)
 
-        Everything.TestObj(gtype=int)
+        object_ = Everything.TestObj(gtype=int)
         self.assertEquals(object_.props.gtype, GObject.TYPE_INT)
         object_.props.gtype = str
         self.assertEquals(object_.props.gtype, GObject.TYPE_STRING)



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