Fix qt_args test.
The order of the arguments is non-deterministic.
This commit is contained in:
parent
3d6d81e1cb
commit
c90e01e16a
@ -426,9 +426,11 @@ class GetQtArgsTests(TestCase):
|
||||
"""Test commandline with a Qt argument and flag."""
|
||||
ns = self._namespace(['--qt-stylesheet', 'foobar', '--qt-reverse'],
|
||||
flags=['--qt-reverse'], args=['--qt-stylesheet'])
|
||||
self.assertEqual(utils.get_qt_args(ns), [sys.argv[0],
|
||||
'-stylesheet', 'foobar',
|
||||
'-reverse'])
|
||||
qt_args = utils.get_qt_args(ns)
|
||||
self.assertEqual(qt_args[0], sys.argv[0])
|
||||
self.assertIn('-reverse', qt_args)
|
||||
self.assertIn('-stylesheet', qt_args)
|
||||
self.assertIn('foobar', qt_args)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
Loading…
Reference in New Issue
Block a user