mirror of
https://github.com/python/cpython.git
synced 2025-11-03 03:22:27 +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'
|
'Verify the pretty-printing of sets'
|
||||||
if (gdb_major_version, gdb_minor_version) < (7, 3):
|
if (gdb_major_version, gdb_minor_version) < (7, 3):
|
||||||
self.skipTest("pretty-printing of sets needs gdb 7.3 or later")
|
self.skipTest("pretty-printing of sets needs gdb 7.3 or later")
|
||||||
self.assertGdbRepr(set(), 'set()')
|
self.assertGdbRepr(set(), "set()")
|
||||||
self.assertGdbRepr(set(['a', 'b']), "{'a', 'b'}")
|
self.assertGdbRepr(set(['a']), "{'a'}")
|
||||||
self.assertGdbRepr(set([4, 5, 6]), "{4, 5, 6}")
|
# 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,
|
# Ensure that we handle sets containing the "dummy" key value,
|
||||||
# which happens on deletion:
|
# which happens on deletion:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue