summaryrefslogtreecommitdiffstats
path: root/Lib/lib-tk/test
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2012-02-21 05:15:10 (GMT)
committerBenjamin Peterson <benjamin@python.org>2012-02-21 05:15:10 (GMT)
commitc7bbd7be945998f4471b95a5c0f54af75dfb922c (patch)
treea7f60dad81077a367a1ed00dab13ad4be75ead60 /Lib/lib-tk/test
parentc59df7d4e916d12bd110701943277f77c1ebd4de (diff)
downloadcpython-c7bbd7be945998f4471b95a5c0f54af75dfb922c.zip
cpython-c7bbd7be945998f4471b95a5c0f54af75dfb922c.tar.gz
cpython-c7bbd7be945998f4471b95a5c0f54af75dfb922c.tar.bz2
don't rely on dict order
Diffstat (limited to 'Lib/lib-tk/test')
-rw-r--r--Lib/lib-tk/test/test_ttk/test_functions.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/Lib/lib-tk/test/test_ttk/test_functions.py b/Lib/lib-tk/test/test_ttk/test_functions.py
index 9de25a4..15e76c1 100644
--- a/Lib/lib-tk/test/test_ttk/test_functions.py
+++ b/Lib/lib-tk/test/test_ttk/test_functions.py
@@ -143,8 +143,10 @@ class InternalFunctionsTest(unittest.TestCase):
self.assertEqual(ttk._format_elemcreate('image', False, 'test',
('a', 'b', 'c')), ("test {a b} c", ()))
# state spec and options
- self.assertEqual(ttk._format_elemcreate('image', False, 'test',
- ('a', 'b'), a='x', b='y'), ("test a b", ("-a", "x", "-b", "y")))
+ res = ttk._format_elemcreate('image', False, 'test',
+ ('a', 'b'), a='x', b='y')
+ self.assertEqual(res[0], "test a b")
+ self.assertEqual(set(res[1]), {"-a", "x", "-b", "y"})
# format returned values as a tcl script
# state spec with multiple states and an option with a multivalue
self.assertEqual(ttk._format_elemcreate('image', True, 'test',