mirror of
https://github.com/samba-team/samba.git
synced 2025-08-04 08:22:08 +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:
@ -95,10 +95,6 @@ class PackTests(unittest.TestCase):
|
|||||||
cases = [('w', (42,), '\x2a\0'),
|
cases = [('w', (42,), '\x2a\0'),
|
||||||
('p', [None], '\0\0\0\0'),
|
('p', [None], '\0\0\0\0'),
|
||||||
('p', ['true'], '\x01\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:
|
for packer in both_packers:
|
||||||
|
Reference in New Issue
Block a user