]> granicus.if.org Git - python/commitdiff
Fixed merge test for Tcl/Tk <8.5 (issue #18964).
authorSerhiy Storchaka <storchaka@gmail.com>
Sun, 27 Oct 2013 10:38:01 +0000 (12:38 +0200)
committerSerhiy Storchaka <storchaka@gmail.com>
Sun, 27 Oct 2013 10:38:01 +0000 (12:38 +0200)
Lib/test/test_tcl.py

index 2cdac2bd972b99d1ef5a1c7b3254aeccd8dd874f..cf1fcf98125ce5de6594b633a7ca890189a41504 100644 (file)
@@ -277,9 +277,12 @@ class TclTest(unittest.TestCase):
                 (('a', (2, 3.4)), 'a {2 3.4}'),
                 ((), ''),
                 ((call('list', 1, '2', (3.4,)),), '{1 2 3.4}'),
-                ((call('dict', 'create', 12, '\u20ac', b'\xe2\x82\xac', (3.4,)),),
-                    '{12 € € 3.4}'),
             ]
+            if tcl_version >= (8, 5):
+                testcases += [
+                    ((call('dict', 'create', 12, '\u20ac', b'\xe2\x82\xac', (3.4,)),),
+                     '{12 € € 3.4}'),
+                ]
             for args, res in testcases:
                 self.assertEqual(merge(*args), res, msg=args)
             self.assertRaises(UnicodeDecodeError, merge, b'\x80')