From: Martin Pool Date: Mon, 4 Nov 2002 19:54:06 +0000 (+0000) Subject: test_pack: Coercing a dictionary to a sequence as it is packed is not X-Git-Tag: samba-3.0.0~2088 X-Git-Url: http://git.samba.org/?p=samba.git;a=commitdiff_plain;h=ed0e4a670d4d62b63afdaf7d9f13e39b98cdf1b2 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. --- diff --git a/source/python/examples/tdbpack/test_tdbpack.py b/source/python/examples/tdbpack/test_tdbpack.py index 659dc0efed9..e0553997c5a 100755 --- a/source/python/examples/tdbpack/test_tdbpack.py +++ b/source/python/examples/tdbpack/test_tdbpack.py @@ -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: