summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorINADA Naoki <songofacandy@gmail.com>2016-11-22 10:43:11 (GMT)
committerINADA Naoki <songofacandy@gmail.com>2016-11-22 10:43:11 (GMT)
commitff33c93f23646aacfac42d50d72961b3858f91e8 (patch)
treeb6f646d955e67d99d8dfe75d81ff4fd661bce601 /Lib/test
parent1cd91a17a958a7c24cdc9976a950100fd7cd1117 (diff)
parentd7d2bc8798da3b083e383e949ba01d61b78e4e4d (diff)
downloadcpython-ff33c93f23646aacfac42d50d72961b3858f91e8.zip
cpython-ff33c93f23646aacfac42d50d72961b3858f91e8.tar.gz
cpython-ff33c93f23646aacfac42d50d72961b3858f91e8.tar.bz2
Issue #28023: Fix python-gdb.py didn't support new dict implementation
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_gdb.py9
1 files changed, 3 insertions, 6 deletions
diff --git a/Lib/test/test_gdb.py b/Lib/test/test_gdb.py
index 5fbf154..2bd4457 100644
--- a/Lib/test/test_gdb.py
+++ b/Lib/test/test_gdb.py
@@ -11,9 +11,6 @@ import sysconfig
import unittest
import locale
-# FIXME: issue #28023
-raise unittest.SkipTest("FIXME: issue #28023, compact dict (issue #27350) broke python-gdb.py")
-
# Is this Python configured to support threads?
try:
import _thread
@@ -296,9 +293,8 @@ class PrettyPrintTests(DebuggerTests):
'Verify the pretty-printing of dictionaries'
self.assertGdbRepr({})
self.assertGdbRepr({'foo': 'bar'}, "{'foo': 'bar'}")
- # PYTHONHASHSEED is need to get the exact item order
- if not sys.flags.ignore_environment:
- self.assertGdbRepr({'foo': 'bar', 'douglas': 42}, "{'douglas': 42, 'foo': 'bar'}")
+ # Python preserves insertion order since 3.6
+ self.assertGdbRepr({'foo': 'bar', 'douglas': 42}, "{'foo': 'bar', 'douglas': 42}")
def test_lists(self):
'Verify the pretty-printing of lists'
@@ -819,6 +815,7 @@ id(42)
)
self.assertIn('Garbage-collecting', gdb_output)
+ @unittest.skip("FIXME: builtin method is not shown in py-bt and py-bt-full")
@unittest.skipIf(python_is_optimized(),
"Python was compiled with optimizations")
# Some older versions of gdb will fail with