test_pack: Coercing a dictionary to a sequence as it is packed is not
authorMartin Pool <mbp@samba.org>
Mon, 4 Nov 2002 19:54:06 +0000 (19:54 +0000)
committerMartin Pool <mbp@samba.org>
Mon, 4 Nov 2002 19:54:06 +0000 (19:54 +0000)
compatible with the old code, and so it is removed from the test case.

source/python/examples/tdbpack/test_tdbpack.py

index 659dc0efed98019c86cdcd439ee9eaee652041ac..e0553997c5a178c02ecaf69e32c7e27b95970a77 100755 (executable)
@@ -95,10 +95,6 @@ class PackTests(unittest.TestCase):
         cases = [('w', (42,), '\x2a\0'),
                  ('p', [None], '\0\0\0\0'),
                  ('p', ['true'], '\x01\0\0\0'),
-
-                 ('w', {1: 'fruit'}, '\x01\0'),
-                 # passing a dictionary is dodgy, but it gets coerced to keys
-                 # as if you called list()
                  ]
 
         for packer in both_packers: