Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 952989 - dev-python/docutils-0.21.2: Fails tests
Summary: dev-python/docutils-0.21.2: Fails tests
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-04-01 08:31 UTC by Dustin Polke
Modified: 2025-04-01 15:22 UTC (History)
1 user (show)

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


Attachments
Full build log (build.log,15.27 KB, text/x-log)
2025-04-01 08:31 UTC, Dustin Polke
Details
emerge --info (emerge--info.txt,23.39 KB, text/plain)
2025-04-01 08:32 UTC, Dustin Polke
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dustin Polke 2025-04-01 08:31:59 UTC
Created attachment 923380 [details]
Full build log

FAIL: test_parser (test_parsers.test_rst.test_directives.test_code.ParserTestCase.test_parser) (id="totest['code_parsing'][1]")
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/tmp/portage/dev-python/docutils-0.21.2/work/docutils-0.21.2/test/test_parsers/test_rst/test_directives/test_code.py", line 49, in test_parser
    self.assertEqual(case_expected, output)
AssertionError: '<doc[244 chars]      \n        <inline classes="name function[1305 chars] )\n' != '<doc[244 chars]     <inline classes="whitespace">\n          [1348 chars] )\n'
Diff is 1714 characters long. Set self.maxDiff to None to see it.

======================================================================
FAIL: test_parser (test_parsers.test_rst.test_directives.test_code_long.ParserTestCase.test_parser) (id="totest['code_parsing_long'][0]")
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/tmp/portage/dev-python/docutils-0.21.2/work/docutils-0.21.2/test/test_parsers/test_rst/test_directives/test_code_long.py", line 41, in test_parser
    self.assertEqual(case_expected, output)
AssertionError: '<doc[196 chars]      \n        <inline classes="name function[1305 chars] )\n' != '<doc[196 chars]     <inline classes="whitespace">\n          [1348 chars] )\n'
Diff is 1666 characters long. Set self.maxDiff to None to see it.

======================================================================
FAIL: test_publish (test_writers.test_html5_polyglot_parts.Html5WriterPublishPartsTestCase.test_publish) (id="totest['system_messages-PIL'][0]")
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/tmp/portage/dev-python/docutils-0.21.2/work/docutils-0.21.2/test/test_writers/test_html5_polyglot_parts.py", line 91, in test_publish
    self.assertEqual(case_expected, self.format_output(parts))
AssertionError: {'fra[318 chars]y: \'/var/tmp/portage/dev-python/docutils-0.21[323 chars]>\n'} != {'fra[318 chars]y: \'dummy.png\'</p>\n</aside>\n<aside class="[253 chars]>\n'}
  {'fragment': '<img alt="dummy.png" src="dummy.png" />\n'
               '<aside class="system-message">\n'
               '<p class="system-message-title">System Message: WARNING/2 (<span '
               'class="docutils literal">&lt;string&gt;</span>, line 1)</p>\n'
               '<p>Cannot scale image!\n'
               '  Could not get size from &quot;dummy.png&quot;:\n'
-              '  [Errno 2] No such file or directory: '
?              ^

+              "  [Errno 2] No such file or directory: 'dummy.png'</p>\n"
?              ^                                        +++++++++++++++++

-              "'/var/tmp/portage/dev-python/docutils-0.21.2/work/docutils-0.21.2/test/dummy.png'</p>\n"
               '</aside>\n'
               '<aside class="system-message">\n'
               '<p class="system-message-title">System Message: ERROR/3 (<span '
               'class="docutils literal">&lt;string&gt;</span>, line 1)</p>\n'
               '<p>Cannot embed image &quot;dummy.png&quot;:\n'
               "  [Errno 2] No such file or directory: 'dummy.png'</p>\n"
               '</aside>\n'}

----------------------------------------------------------------------
Ran 1689 tests in 9.550s

FAILED (failures=3, skipped=3)
Elapsed time: 10.332 seconds
 * ERROR: dev-python/docutils-0.21.2::gentoo failed (test phase):
 *   Testing failed with python3.12
 * 
 * Call stack:
 *     ebuild.sh, line  136:  Called src_test
 *   environment, line 3897:  Called distutils-r1_src_test
 *   environment, line 1913:  Called _distutils-r1_run_foreach_impl 'python_test'
 *   environment, line  648:  Called python_foreach_impl 'distutils-r1_run_phase' 'python_test'
 *   environment, line 3479:  Called multibuild_foreach_variant '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_test'
 *   environment, line 2871:  Called _multibuild_run '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_test'
 *   environment, line 2869:  Called _python_multibuild_wrapper 'distutils-r1_run_phase' 'python_test'
 *   environment, line 1136:  Called distutils-r1_run_phase 'python_test'
 *   environment, line 1836:  Called python_test
 *   environment, line 3783:  Called die
 * The specific snippet of code:
 *       "${EPYTHON}" alltests.py -v || die "Testing failed with ${EPYTHON}"


# emerge -pqv =dev-python/docutils-0.21.2::gentoo
[ebuild   R   ] dev-python/docutils-0.21.2  PYTHON_TARGETS="python3_12 python3_13* (-pypy3) (-pypy3_11) -python3_10 -python3_11"
Comment 1 Dustin Polke 2025-04-01 08:32:15 UTC
Created attachment 923381 [details]
emerge --info