Powered by ed. Your IP: 18.97.14.85 | python3-numpydoc 51ef3dd3-808c-4e63-8fc2-08266926150cToc:- error 1
error: Bad exit status from /tmp/B.g5b0uq21/BUILD/tmp/rpm-tmp.n9YZOS (%build)
- error 2
RPM build errors:
- error 3
error: No files produced.
Content:_________________________________ test_MyClass _________________________________
sphinx_app = <sphinx.application.Sphinx object at 0xf5d686b8>
def test_MyClass(sphinx_app):
"""Test that class documentation is reasonable."""
src_dir, out_dir = sphinx_app.srcdir, sphinx_app.outdir
class_rst = op.join(src_dir, "generated", "numpydoc_test_module.MyClass.rst")
with open(class_rst) as fid:
rst = fid.read()
assert r"numpydoc\_test\_module" in rst # properly escaped
class_html = op.join(out_dir, "generated", "numpydoc_test_module.MyClass.html")
with open(class_html) as fid:
html = fid.read()
# ensure that no autodoc weirdness ($) occurs
assert "$self" not in html
assert "/," not in html
assert "__init__" in html # inherited
# escaped * chars should no longer be preceded by \'s,
# if we see a \* in the output we know it's incorrect:
assert r"\*" not in html
# "self" should not be in the parameter list for the class:
assert "self," not in html
# check xref was embedded properly (dict should link using xref):
> assert "stdtypes.html#dict" in html
E assert 'stdtypes.html#dict' in '\n<!DOCTYPE html>\n\n<html>\n <head>\n <meta charset="utf-8" />\n <meta name="viewport" content="width=device-...test_module.MyClass.rst.txt"\n rel="nofollow">Page source</a>\n </div>\n\n \n\n \n </body>\n</html>'
class_html = '/tmp/B.g5b0uq21/BUILD/tmp/pytest-of-builder/pytest-0/root/_build/html/generated/numpydoc_test_module.MyClass.html'
class_rst = '/tmp/B.g5b0uq21/BUILD/tmp/pytest-of-builder/pytest-0/root/generated/numpydoc_test_module.MyClass.rst'
fid = <_io.TextIOWrapper name='/tmp/B.g5b0uq21/BUILD/tmp/pytest-of-builder/pytest-0/root/_build/html/generated/numpydoc_test_module.MyClass.html' mode='r' encoding='UTF-8'>
html = '\n<!DOCTYPE html>\n\n<html>\n <head>\n <meta charset="utf-8" />\n <meta name="viewport" content="width=device-...test_module.MyClass.rst.txt"\n rel="nofollow">Page source</a>\n </div>\n\n \n\n \n </body>\n</html>'
out_dir = '/tmp/B.g5b0uq21/BUILD/tmp/pytest-of-builder/pytest-0/root/_build/html'
rst = '\ufeffnumpydoc\\_test\\_module.MyClass\n==============================\n\n.. currentmodule:: numpydoc_test_module\n\n...bric:: Methods\n\n .. autosummary::\n \n ~MyClass.__init__\n ~MyClass.example\n \n \n\n \n \n '
sphinx_app = <sphinx.application.Sphinx object at 0xf5d686b8>
src_dir = '/tmp/B.g5b0uq21/BUILD/tmp/pytest-of-builder/pytest-0/root'
numpydoc/tests/test_full.py:62: AssertionError
---------------------------- Captured stdout setup -----------------------------
[01mRunning Sphinx v4.5.0[39;49;00m
[01mmaking output directory... [39;49;00mdone
loading intersphinx inventory from https://docs.python.org/3/objects.inv...
[autosummary] generating autosummary for: index.rst
[autosummary] generating autosummary for: /tmp/B.g5b0uq21/BUILD/tmp/pytest-of-builder/pytest-0/root/generated/numpydoc_test_module.MyClass.rst, /tmp/B.g5b0uq21/BUILD/tmp/pytest-of-builder/pytest-0/root/generated/numpydoc_test_module.my_function.rst
[01mbuilding [mo]: [39;49;00mtargets for 0 po files that are out of date
[01mbuilding [html]: [39;49;00mtargets for 1 source files that are out of date
[01mupdating environment: [39;49;00m[new config] 3 added, 0 changed, 0 removed
[01mreading sources... [39;49;00m[ 33%] [35mgenerated/numpydoc_test_module.MyClass[39;49;00m
[01mreading sources... [39;49;00m[ 66%] [35mgenerated/numpydoc_test_module.my_function[39;49;00m
[01mreading sources... [39;49;00m[100%] [35mindex[39;49;00m
[01mlooking for now-outdated files... [39;49;00mnone found
[01mpickling environment... [39;49;00mdone
[01mchecking consistency... [39;49;00mdone
[01mpreparing documents... [39;49;00mdone
[01mwriting output... [39;49;00m[ 33%] [32mgenerated/numpydoc_test_module.MyClass[39;49;00m
[01mwriting output... [39;49;00m[ 66%] [32mgenerated/numpydoc_test_module.my_function[39;49;00m
[01mwriting output... [39;49;00m[100%] [32mindex[39;49;00m
[01mgenerating indices... [39;49;00mgenindex py-modindex done
[01mwriting additional pages... [39;49;00msearch done
[01mcopying static files... [39;49;00mdone
[01mcopying extra files... [39;49;00mdone
[01mdumping search index in English (code: en)... [39;49;00mdone
[01mdumping object inventory... [39;49;00mdone
[01mbuild finished with problems, 6 warnings.[39;49;00m
---------------------------- Captured stderr setup -----------------------------
[91mWARNING: failed to reach any of the inventories with the following issues:
intersphinx inventory 'https://docs.python.org/3/objects.inv' not fetchable due to <class 'requests.exceptions.ConnectionError'>: HTTPSConnectionPool(host='docs.python.org', port=443): Max retries exceeded with url: /3/objects.inv (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0xf4a76f70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))[39;49;00m
[91m/tmp/B.g5b0uq21/BUILD/numpydoc-1.5.0/numpydoc/tests/tinybuild/numpydoc_test_module.py:docstring of numpydoc_test_module.MyClass:9: WARNING: term not in glossary: python:iterable[39;49;00m
[91m/tmp/B.g5b0uq21/BUILD/numpydoc-1.5.0/numpydoc/tests/tinybuild/numpydoc_test_module.py:docstring of numpydoc_test_module.MyClass:21: WARNING: py:class reference target not found: python:dict[39;49;00m
[91m/tmp/B.g5b0uq21/BUILD/numpydoc-1.5.0/numpydoc/tests/tinybuild/numpydoc_test_module.py:docstring of numpydoc_test_module.my_function:9: WARNING: term not in glossary: python:iterable[39;49;00m
[91m/tmp/B.g5b0uq21/BUILD/numpydoc-1.5.0/numpydoc/tests/tinybuild/numpydoc_test_module.py:docstring of numpydoc_test_module.my_function:12: WARNING: py:class reference target not found: python:dict[39;49;00m
[91m/tmp/B.g5b0uq21/BUILD/numpydoc-1.5.0/numpydoc/tests/tinybuild/numpydoc_test_module.py:docstring of numpydoc_test_module.my_function:25: WARNING: py:data reference target not found: python:None[39;49;00m
_______________________________ test_my_function _______________________________
sphinx_app = <sphinx.application.Sphinx object at 0xf5d686b8>
def test_my_function(sphinx_app):
"""Test that function documentation is reasonable."""
out_dir = sphinx_app.outdir
function_html = op.join(
out_dir, "generated", "numpydoc_test_module.my_function.html"
)
with open(function_html) as fid:
html = fid.read()
assert r"\*args" not in html
assert "*args" in html
# check xref (iterable should link using xref):
> assert "glossary.html#term-iterable" in html
E assert 'glossary.html#term-iterable' in '\n<!DOCTYPE html>\n\n<html>\n <head>\n <meta charset="utf-8" />\n <meta name="viewport" content="width=device-..._module.my_function.rst.txt"\n rel="nofollow">Page source</a>\n </div>\n\n \n\n \n </body>\n</html>'
fid = <_io.TextIOWrapper name='/tmp/B.g5b0uq21/BUILD/tmp/pytest-of-builder/pytest-0/root/_build/html/generated/numpydoc_test_module.my_function.html' mode='r' encoding='UTF-8'>
function_html = '/tmp/B.g5b0uq21/BUILD/tmp/pytest-of-builder/pytest-0/root/_build/html/generated/numpydoc_test_module.my_function.html'
html = '\n<!DOCTYPE html>\n\n<html>\n <head>\n <meta charset="utf-8" />\n <meta name="viewport" content="width=device-..._module.my_function.rst.txt"\n rel="nofollow">Page source</a>\n </div>\n\n \n\n \n </body>\n</html>'
out_dir = '/tmp/B.g5b0uq21/BUILD/tmp/pytest-of-builder/pytest-0/root/_build/html'
sphinx_app = <sphinx.application.Sphinx object at 0xf5d686b8>
numpydoc/tests/test_full.py:76: AssertionError
-- generated xml file: /tmp/B.g5b0uq21/BUILD/numpydoc-1.5.0/junit-results.xml --
=========================== short test summary info ============================
XFAIL numpydoc/tests/test_validate.py::TestValidator::test_bad_docstrings[BadParameters-blank_lines-msgs30]
XFAIL numpydoc/tests/test_validate.py::TestValidator::test_bad_docstrings[BadReturns-no_type-msgs33]
FAILED numpydoc/tests/test_full.py::test_MyClass - assert 'stdtypes.html#dict...
FAILED numpydoc/tests/test_full.py::test_my_function - assert 'glossary.html#...
=================== 2 failed, 237 passed, 2 xfailed in 3.61s ===================
error: Bad exit status from /tmp/B.g5b0uq21/BUILD/tmp/rpm-tmp.n9YZOS (%build)
RPM build errors:
Bad exit status from /tmp/B.g5b0uq21/BUILD/tmp/rpm-tmp.n9YZOS (%build)
ended at: Sat Jan 11 14:19:38 2025, done in 0:00:05.473775
error: No files produced.
+ chmod -R u+rwX /tmp/B.g5b0uq21/BUILD
+ rm -rf /tmp/B.g5b0uq21/tmp /tmp/B.g5b0uq21/BUILD
+ rm -rf /tmp/B.g5b0uq21
Begin-PLD-Builder-Info
Build-Time: user:6.53s sys:1.42s real:8.14s (faults io:0 non-io:143758)
End-PLD-Builder-Info
|
|