Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 701158 - dev-python/tappy-2.4: test failure: RuntimeError: Unsafe load() call disabled by Gentoo
Summary: dev-python/tappy-2.4: test failure: RuntimeError: Unsafe load() call disabled...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords: TESTFAILURE
: 691234 (view as bug list)
Depends on:
Blocks: 700690
  Show dependency tree
 
Reported: 2019-11-25 18:40 UTC by Thomas Deutschmann (RETIRED)
Modified: 2020-04-23 11:25 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,32.10 KB, text/plain)
2019-11-25 18:40 UTC, Thomas Deutschmann (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Deutschmann (RETIRED) gentoo-dev 2019-11-25 18:40:57 UTC
Created attachment 597516 [details]
build.log

======================================================================
ERROR: test_malformed_yaml (tap.tests.test_parser.TestParser)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "tap/tests/test_parser.py", line 394, in test_malformed_yaml
    self.assertIsNone(lines[2].yaml_block)
  File "tap/line.py", line 91, in yaml_block
    yaml_dict = yaml.load(self._yaml_block)
  File "/usr/lib/python2.7/site-packages/yaml/__init__.py", line 109, in load
    raise RuntimeError("Unsafe load() call disabled by Gentoo. See bug #659348")
RuntimeError: Unsafe load() call disabled by Gentoo. See bug #659348

======================================================================
ERROR: test_parses_yaml (tap.tests.test_parser.TestParser)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "tap/tests/test_parser.py", line 238, in test_parses_yaml
    converted_yaml = yaml.load(u"""test: sample yaml""")
  File "/usr/lib/python2.7/site-packages/yaml/__init__.py", line 109, in load
    raise RuntimeError("Unsafe load() call disabled by Gentoo. See bug #659348")
RuntimeError: Unsafe load() call disabled by Gentoo. See bug #659348

======================================================================
ERROR: test_parses_yaml_more_complex (tap.tests.test_parser.TestParser)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "tap/tests/test_parser.py", line 310, in test_parses_yaml_more_complex
    - bar""")
  File "/usr/lib/python2.7/site-packages/yaml/__init__.py", line 109, in load
    raise RuntimeError("Unsafe load() call disabled by Gentoo. See bug #659348")
RuntimeError: Unsafe load() call disabled by Gentoo. See bug #659348

======================================================================
ERROR: test_parses_yaml_no_end (tap.tests.test_parser.TestParser)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "tap/tests/test_parser.py", line 268, in test_parses_yaml_no_end
    converted_yaml = yaml.load(u"""test: sample yaml""")
  File "/usr/lib/python2.7/site-packages/yaml/__init__.py", line 109, in load
    raise RuntimeError("Unsafe load() call disabled by Gentoo. See bug #659348")
RuntimeError: Unsafe load() call disabled by Gentoo. See bug #659348

----------------------------------------------------------------------
Ran 105 tests in 0.033s

FAILED (errors=4)
 * ERROR: dev-python/tappy-2.4::gentoo failed (test phase):
 *   Tests fail with python2.7
 *
Comment 1 Larry the Git Cow gentoo-dev 2020-04-23 11:23:42 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3a78d40a6fc15db6326c1c5d36cbed78860dc7ec

commit 3a78d40a6fc15db6326c1c5d36cbed78860dc7ec
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: 2020-04-23 11:12:54 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2020-04-23 11:23:32 +0000

    dev-python/tappy: Fix pyyaml usage
    
    Closes: https://bugs.gentoo.org/701158
    Signed-off-by: Michał Górny <mgorny@gentoo.org>

 dev-python/tappy/files/tappy-2.4-yaml.patch        | 61 ++++++++++++++++++++++
 .../{tappy-2.4.ebuild => tappy-2.4-r1.ebuild}      | 13 +++--
 2 files changed, 67 insertions(+), 7 deletions(-)
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2020-04-23 11:25:23 UTC
*** Bug 691234 has been marked as a duplicate of this bug. ***