Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 688586 - dev-python/markdown-2.6.8 fails 4 tests
Summary: dev-python/markdown-2.6.8 fails 4 tests
Status: RESOLVED OBSOLETE
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
Depends on:
Blocks:
 
Reported: 2019-06-24 07:21 UTC by Alexey
Modified: 2020-03-27 21:30 UTC (History)
3 users (show)

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


Attachments
build.log (build.log,17.41 KB, text/plain)
2019-06-24 07:21 UTC, Alexey
Details
emerge --info (file_688586.txt,18.17 KB, text/plain)
2019-06-24 07:21 UTC, Alexey
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexey 2019-06-24 07:21:28 UTC
Created attachment 580616 [details]
build.log

======================================================================                                                                                                                                                                                                            
ERROR: Failure: RuntimeError (Unsafe load() call disabled by Gentoo. See bug #659348)                                                                                                                                                                                             
----------------------------------------------------------------------                                                                                                                                                                                                            
Traceback (most recent call last):                                                                                                                                                                                                                                                
  File "/usr/lib64/python2.7/site-packages/nose/loader.py", line 251, in generate                                                                                                                                                                                                 
    for test in g():                                                                                                                                                                                                                                                              
  File "/mnt/portagetmp/portage/dev-python/markdown-2.6.8/work/Markdown-2.6.8-python2_7/tests/__init__.py", line 140, in TestSyntax                                                                                                                                               
    config = get_config(dir_name)                                                                                                                                                                                                                                                 
  File "/mnt/portagetmp/portage/dev-python/markdown-2.6.8/work/Markdown-2.6.8-python2_7/tests/__init__.py", line 74, in get_config
    config = YamlConfig(defaults, os.path.join(dir_name, 'test.cfg'))          
  File "/mnt/portagetmp/portage/dev-python/markdown-2.6.8/work/Markdown-2.6.8-python2_7/tests/__init__.py", line 38, in __init__
    self._config = yaml.load(f)                                                                
  File "/usr/lib64/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: testExtensionConfigOption (tests.test_apis.TestCliOptionParsing)  
----------------------------------------------------------------------     
Traceback (most recent call last):
  File "/mnt/portagetmp/portage/dev-python/markdown-2.6.8/work/Markdown-2.6.8-python2_7/tests/test_apis.py", line 717, in testExtensionConfigOption
    options, logging_level = parse_options(['-c', self.tempfile])
  File "/mnt/portagetmp/portage/dev-python/markdown-2.6.8/work/Markdown-2.6.8-python2_7/lib/markdown/__main__.py", line 88, in parse_options
    extension_configs = yaml.load(fp)
  File "/usr/lib64/python2.7/site-packages/yaml/__init__.py", line 109, in load
    raise RuntimeError("Unsafe load() call disabled by Gentoo. See bug #659348")
RuntimeError: Failed parsing extension config file: /mnt/portagetmp/portage/dev-python/markdown-2.6.8/temp/tmp7GQ2R5.yml

======================================================================
ERROR: testExtensonConfigOptionAsJSON (tests.test_apis.TestCliOptionParsing)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/mnt/portagetmp/portage/dev-python/markdown-2.6.8/work/Markdown-2.6.8-python2_7/tests/test_apis.py", line 747, in testExtensonConfigOptionAsJSON
    options, logging_level = parse_options(['-c', self.tempfile])
  File "/mnt/portagetmp/portage/dev-python/markdown-2.6.8/work/Markdown-2.6.8-python2_7/lib/markdown/__main__.py", line 88, in parse_options
    extension_configs = yaml.load(fp)
  File "/usr/lib64/python2.7/site-packages/yaml/__init__.py", line 109, in load
    raise RuntimeError("Unsafe load() call disabled by Gentoo. See bug #659348")
RuntimeError: Failed parsing extension config file: /mnt/portagetmp/portage/dev-python/markdown-2.6.8/temp/tmpDyfNIi.yml

======================================================================
ERROR: testExtensonConfigOptionBadFormat (tests.test_apis.TestCliOptionParsing)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/mnt/portagetmp/portage/dev-python/markdown-2.6.8/work/Markdown-2.6.8-python2_7/tests/test_apis.py", line 760, in testExtensonConfigOptionBadFormat
    self.assertRaises(yaml.YAMLError, parse_options, ['-c', self.tempfile])
  File "/usr/lib64/python2.7/unittest/case.py", line 473, in assertRaises
    callableObj(*args, **kwargs)
  File "/mnt/portagetmp/portage/dev-python/markdown-2.6.8/work/Markdown-2.6.8-python2_7/lib/markdown/__main__.py", line 88, in parse_options
    extension_configs = yaml.load(fp)
  File "/usr/lib64/python2.7/site-packages/yaml/__init__.py", line 109, in load
    raise RuntimeError("Unsafe load() call disabled by Gentoo. See bug #659348")
RuntimeError: Failed parsing extension config file: /mnt/portagetmp/portage/dev-python/markdown-2.6.8/temp/tmpN6YTXZ.yml
Comment 1 Alexey 2019-06-24 07:21:57 UTC
Created attachment 580618 [details]
emerge --info
Comment 2 Paolo Pedroni 2019-09-18 08:51:36 UTC
It is caused by unsafe calls to yaml.load in tests. 

Instruction to fix it are in bug #682964.

It should also be updated to block said bug.
Comment 3 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2020-03-27 21:30:01 UTC
Old version removed.  Please reopen if you can reproduce it with the current one.