summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcelo Lira <marcelo.lira@openbossa.org>2011-10-21 17:43:31 -0300
committerMarcelo Lira <marcelo.lira@openbossa.org>2011-12-09 19:25:36 -0300
commitf2c78ea48dabdb086eac1e693266b2ea7b86a846 (patch)
tree2472e4f3f3394f1d0d97faf70bcab236040cdfe8
parentc6e8f512c4f1c8bf9768d4b262b49ae1293c66db (diff)
downloadpyside-f2c78ea48dabdb086eac1e693266b2ea7b86a846.tar.gz
pyside-f2c78ea48dabdb086eac1e693266b2ea7b86a846.tar.xz
pyside-f2c78ea48dabdb086eac1e693266b2ea7b86a846.zip
Fixes the test for a QFlag value returned in a QVariant.
-rw-r--r--tests/QtCore/qflags_test.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/QtCore/qflags_test.py b/tests/QtCore/qflags_test.py
index 78ed49b..9d2f4b1 100644
--- a/tests/QtCore/qflags_test.py
+++ b/tests/QtCore/qflags_test.py
@@ -76,7 +76,7 @@ class QFlagsOnQVariant(unittest.TestCase):
def testQFlagsOnQVariant(self):
o = QObject()
o.setProperty("foo", QIODevice.ReadOnly | QIODevice.WriteOnly)
- self.assertEqual(type(o.property("foo")), int)
+ self.assertEqual(type(o.property("foo")), QIODevice.OpenMode)
class QFlagsWrongType(unittest.TestCase):
def testWrongType(self):