[Python-checkins] cpython: Issue #25876: Fix also test_set() of test_gdb when -E command line is used
victor.stinner
python-checkins at python.org
Fri Jan 22 09:04:34 EST 2016
https://hg.python.org/cpython/rev/9faa15da2dde
changeset: 100042:9faa15da2dde
user: Victor Stinner <victor.stinner at gmail.com>
date: Fri Jan 22 15:04:27 2016 +0100
summary:
Issue #25876: Fix also test_set() of test_gdb when -E command line is used
files:
Lib/test/test_gdb.py | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/Lib/test/test_gdb.py b/Lib/test/test_gdb.py
--- a/Lib/test/test_gdb.py
+++ b/Lib/test/test_gdb.py
@@ -367,9 +367,12 @@
'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:
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list