Fixes the test for a QFlag value returned in a QVariant.
This commit is contained in:
parent
b643a3f8ab
commit
80c02f16e5
1 changed files with 1 additions and 1 deletions
|
|
@ -76,7 +76,7 @@ class QFlagsOnQVariant(unittest.TestCase):
|
||||||
def testQFlagsOnQVariant(self):
|
def testQFlagsOnQVariant(self):
|
||||||
o = QObject()
|
o = QObject()
|
||||||
o.setProperty("foo", QIODevice.ReadOnly | QIODevice.WriteOnly)
|
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):
|
class QFlagsWrongType(unittest.TestCase):
|
||||||
def testWrongType(self):
|
def testWrongType(self):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue