mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Issue #25876: Fix also test_set() of test_gdb when -E command line is used
This commit is contained in:
parent
22756f18bc
commit
5a701f0304
1 changed files with 6 additions and 3 deletions
|
@ -367,9 +367,12 @@ class PrettyPrintTests(DebuggerTests):
|
|||
'Verify the pretty-printing of sets'
|
||||
if (gdb_major_version, gdb_minor_version) < (7, 3):
|
||||
self.skipTest("pretty-printing of sets needs gdb 7.3 or later")
|
||||
self.assertGdbRepr(set(), 'set()')
|
||||
self.assertGdbRepr(set(['a', 'b']), "{'a', 'b'}")
|
||||
self.assertGdbRepr(set([4, 5, 6]), "{4, 5, 6}")
|
||||
self.assertGdbRepr(set(), "set()")
|
||||
self.assertGdbRepr(set(['a']), "{'a'}")
|
||||
# PYTHONHASHSEED is need to get the exact frozenset item order
|
||||
if not sys.flags.ignore_environment:
|
||||
self.assertGdbRepr(set(['a', 'b']), "{'a', 'b'}")
|
||||
self.assertGdbRepr(set([4, 5, 6]), "{4, 5, 6}")
|
||||
|
||||
# Ensure that we handle sets containing the "dummy" key value,
|
||||
# which happens on deletion:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue