components/python/python34/patches/22-disable-test_gdb.patch
changeset 5229 b7b91ddbbdce
parent 3749 4b214a886766
equal deleted inserted replaced
5228:b457e3bd2acc 5229:b7b91ddbbdce
     1 This patch was written in-house, but ported from Python 2.7; it is unclear
     1 This patch was written in-house, but ported from Python 2.7; it is unclear
     2 from the version history why these lines were dropped in version 3.  The
     2 from the version history why these lines were dropped in version 3.  The
     3 patch has not yet been submitted upstream, but submission is planned.
     3 patch has not yet been submitted upstream, but submission is planned.
     4 
     4 
     5 --- Python-3.4.2/Lib/test/test_gdb.py.~1~	2014-10-08 01:18:13.000000000 -0700
     5 --- Python-3.4.4rc1/Lib/test/test_gdb.py.~1~	2015-12-09 08:10:27.280590637 -0800
     6 +++ Python-3.4.2/Lib/test/test_gdb.py	2015-02-06 16:00:58.802170301 -0800
     6 +++ Python-3.4.4rc1/Lib/test/test_gdb.py	2015-12-09 08:12:41.389980386 -0800
     7 @@ -34,6 +34,8 @@
     7 @@ -49,6 +49,8 @@
     8  if gdb_major_version < 7:
     8                              "embedding. Saw %s.%s:\n%s"
     9      raise unittest.SkipTest("gdb versions before 7.0 didn't support python embedding"
     9                              % (gdb_major_version, gdb_minor_version,
    10                              " Saw:\n" + gdb_version.decode('ascii', 'replace'))
    10                                 gdb_version))
    11 +if sys.platform.startswith("sunos"):
    11 +if sys.platform.startswith("sunos"):
    12 +    raise unittest.SkipTest("test doesn't work very well on Solaris")
    12 +    raise unittest.SkipTest("test doesn't work very well on Solaris")
    13  
    13  
    14  if not sysconfig.is_python_build():
    14  if not sysconfig.is_python_build():
    15      raise unittest.SkipTest("test_gdb only works on source builds at the moment.")
    15      raise unittest.SkipTest("test_gdb only works on source builds at the moment.")