1
0
mirror of https://github.com/samba-team/samba.git synced 2025-07-29 15:42:04 +03:00

test_pack: Coercing a dictionary to a sequence as it is packed is not

compatible with the old code, and so it is removed from the test case.
This commit is contained in:
Martin Pool
-
parent bae2a38b17
commit ed0e4a670d

View File

@ -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: