components/python/python35/patches/22-disable-test_gdb.patch
author John Beck <John.Beck@Oracle.COM>
Mon, 06 Feb 2017 13:54:36 -0800
changeset 7648 20e09cf3cfaa
parent 5184 6c2a9525f3a4
permissions -rw-r--r--
25429083 Upgrade Python 3.5 line to 3.5.3
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
4912
0b79e9575718 PSARC 2015/414 Python 3.5
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
     1
This patch was written in-house, but ported from Python 2.7; it is unclear
0b79e9575718 PSARC 2015/414 Python 3.5
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
     2
from the version history why these lines were dropped in version 3.  The
0b79e9575718 PSARC 2015/414 Python 3.5
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
     3
patch has not yet been submitted upstream, but submission is planned.
0b79e9575718 PSARC 2015/414 Python 3.5
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
     4
5184
6c2a9525f3a4 22332010 upgrade Python to 3.5.1
John Beck <John.Beck@Oracle.COM>
parents: 4912
diff changeset
     5
--- Python-3.5.1rc1/Lib/test/test_gdb.py.~1~	2015-12-04 08:05:05.566320671 -0800
6c2a9525f3a4 22332010 upgrade Python to 3.5.1
John Beck <John.Beck@Oracle.COM>
parents: 4912
diff changeset
     6
+++ Python-3.5.1rc1/Lib/test/test_gdb.py	2015-12-04 08:09:12.755287204 -0800
7648
20e09cf3cfaa 25429083 Upgrade Python 3.5 line to 3.5.3
John Beck <John.Beck@Oracle.COM>
parents: 5184
diff changeset
     7
@@ -50,6 +50,8 @@
5184
6c2a9525f3a4 22332010 upgrade Python to 3.5.1
John Beck <John.Beck@Oracle.COM>
parents: 4912
diff changeset
     8
                             "embedding. Saw %s.%s:\n%s"
6c2a9525f3a4 22332010 upgrade Python to 3.5.1
John Beck <John.Beck@Oracle.COM>
parents: 4912
diff changeset
     9
                             % (gdb_major_version, gdb_minor_version,
6c2a9525f3a4 22332010 upgrade Python to 3.5.1
John Beck <John.Beck@Oracle.COM>
parents: 4912
diff changeset
    10
                                gdb_version))
4912
0b79e9575718 PSARC 2015/414 Python 3.5
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    11
+if sys.platform.startswith("sunos"):
0b79e9575718 PSARC 2015/414 Python 3.5
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    12
+    raise unittest.SkipTest("test doesn't work very well on Solaris")
0b79e9575718 PSARC 2015/414 Python 3.5
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    13
 
0b79e9575718 PSARC 2015/414 Python 3.5
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    14
 if not sysconfig.is_python_build():
0b79e9575718 PSARC 2015/414 Python 3.5
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    15
     raise unittest.SkipTest("test_gdb only works on source builds at the moment.")