Message195961
I just applied the dict version of dummy to sets in http://hg.python.org/cpython/rev/f0202c3daa7a
and it unexpectedly broke test_gdb again:
FAIL: test_sets (test.test_gdb.PrettyPrintTests)
Verify the pretty-printing of sets
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/shager/cpython-buildarea/3.x.edelsohn-powerlinux-ppc64/build/Lib/test/test_gdb.py", line 319, in test_sets
self.assertEqual(gdb_repr, "{'b'}")
AssertionError: "{<<dummy key> type at remote 0x103b35c0>, 'b'}" != "{'b'}"
- {<<dummy key> type at remote 0x103b35c0>, 'b'}
+ {'b'}
Antoine, can you see what the issue is? Why does this show as the dummy key type instead of being recognized as the object returned by _PySet_Dummy? I'm not sure why this works for dicts, but not for sets. |
|
Date |
User |
Action |
Args |
2013-08-23 12:11:24 | rhettinger | set | recipients:
+ rhettinger, pitrou, larry, dmalcolm, python-dev |
2013-08-23 12:11:24 | rhettinger | set | messageid: <1377259884.58.0.712747137631.issue18772@psf.upfronthosting.co.za> |
2013-08-23 12:11:24 | rhettinger | link | issue18772 messages |
2013-08-23 12:11:24 | rhettinger | create | |
|