-
-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
0.14.1: test suite is failing with sphinx 6.1.3 #160
Comments
Here is pytest output: + PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-sphinx-automodapi-0.14.1-2.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-sphinx-automodapi-0.14.1-2.fc35.x86_64/usr/lib/python3.8/site-packages
+ /usr/bin/pytest -ra -m 'not network'
==================================================================================== test session starts ====================================================================================
platform linux -- Python 3.8.16, pytest-7.2.2, pluggy-1.0.0
rootdir: /home/tkloczko/rpmbuild/BUILD/sphinx-automodapi-0.14.1, configfile: setup.cfg, testpaths: sphinx_automodapi
collected 55 items
sphinx_automodapi/tests/test_autodoc_enhancements.py . [ 1%]
sphinx_automodapi/tests/test_automodapi.py FFFFFFFFFFFFF [ 25%]
sphinx_automodapi/tests/test_automodsumm.py FFFFFFF [ 38%]
sphinx_automodapi/tests/test_cases.py FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF [ 96%]
sphinx_automodapi/tests/test_utils.py .. [100%]
========================================================================================= FAILURES ==========================================================================================
__________________________________________________________________________________ test_am_replacer_basic ___________________________________________________________________________________
tmpdir = local('/tmp/pytest-of-tkloczko/pytest-17/test_am_replacer_basic0')
def test_am_replacer_basic(tmpdir):
"""
Tests replacing an ".. automodapi::" with the automodapi no-option
template
"""
with open(tmpdir.join('index.rst').strpath, 'w') as f:
f.write(am_replacer_str.format(options=''))
> run_sphinx_in_tmpdir(tmpdir)
sphinx_automodapi/tests/test_automodapi.py:83:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tmpdir = local('/tmp/pytest-of-tkloczko/pytest-17/test_am_replacer_basic0'), additional_conf = {}, expect_error = False
def run_sphinx_in_tmpdir(tmpdir, additional_conf={}, expect_error=False):
start_dir = os.path.abspath('.')
conf = deepcopy(DEFAULT_CONF)
conf.update(additional_conf)
write_conf(tmpdir.join('conf.py').strpath, conf)
argv = ['-W', '-b', 'html', '.', '_build/html']
try:
os.chdir(tmpdir.strpath)
status = build_main(argv=argv)
finally:
os.chdir(start_dir)
if expect_error:
assert status != 0
else:
> assert status == 0
E AssertionError
sphinx_automodapi/tests/helpers.py:57: AssertionError
----------------------------------------------------------------------------------- Captured stdout call ------------------------------------------------------------------------------------
Running Sphinx v6.1.3
----------------------------------------------------------------------------------- Captured stderr call ------------------------------------------------------------------------------------
Exception occurred:
File "/usr/lib/python3.8/site-packages/sphinx/deprecation.py", line 46, in __getattr__
warnings.warn(f"The alias '{self._modname}.{name}' is deprecated, "
sphinx.deprecation.RemovedInSphinx80Warning: The alias 'sphinx.util.progress_message' is deprecated, use 'sphinx.util.display.progress_message' instead. Check CHANGES for Sphinx API modifications.
The full traceback has been saved in /tmp/sphinx-err-7v79r7l4.log, if you want to report the issue to the developers.
Please also report this if it was a user error, so that a better error message can be provided next time.
A bug report can be filed in the tracker at <https://github.com/sphinx-doc/sphinx/issues>. Thanks!
_________________________________________________________________________ test_am_replacer_writereprocessed[False] __________________________________________________________________________
tmpdir = local('/tmp/pytest-of-tkloczko/pytest-17/test_am_replacer_writereproces0'), writereprocessed = False
@pytest.mark.parametrize('writereprocessed', [False, True])
def test_am_replacer_writereprocessed(tmpdir, writereprocessed):
"""
Tests the automodapi_writereprocessed option
"""
with io_open(tmpdir.join('index.rst').strpath, 'w', encoding='utf-8') as f:
f.write(am_replacer_repr_str.format(options=''))
> run_sphinx_in_tmpdir(tmpdir, additional_conf={'automodapi_writereprocessed': writereprocessed})
sphinx_automodapi/tests/test_automodapi.py:110:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tmpdir = local('/tmp/pytest-of-tkloczko/pytest-17/test_am_replacer_writereproces0'), additional_conf = {'automodapi_writereprocessed': False}, expect_error = False
def run_sphinx_in_tmpdir(tmpdir, additional_conf={}, expect_error=False):
start_dir = os.path.abspath('.')
conf = deepcopy(DEFAULT_CONF)
conf.update(additional_conf)
write_conf(tmpdir.join('conf.py').strpath, conf)
argv = ['-W', '-b', 'html', '.', '_build/html']
try:
os.chdir(tmpdir.strpath)
status = build_main(argv=argv)
finally:
os.chdir(start_dir)
if expect_error:
assert status != 0
else:
> assert status == 0
E AssertionError
sphinx_automodapi/tests/helpers.py:57: AssertionError
----------------------------------------------------------------------------------- Captured stdout call ------------------------------------------------------------------------------------
Running Sphinx v6.1.3
----------------------------------------------------------------------------------- Captured stderr call ------------------------------------------------------------------------------------
Exception occurred:
File "/usr/lib/python3.8/site-packages/sphinx/deprecation.py", line 46, in __getattr__
warnings.warn(f"The alias '{self._modname}.{name}' is deprecated, "
sphinx.deprecation.RemovedInSphinx80Warning: The alias 'sphinx.util.progress_message' is deprecated, use 'sphinx.util.display.progress_message' instead. Check CHANGES for Sphinx API modifications.
The full traceback has been saved in /tmp/sphinx-err-uom_6ihb.log, if you want to report the issue to the developers.
Please also report this if it was a user error, so that a better error message can be provided next time.
A bug report can be filed in the tracker at <https://github.com/sphinx-doc/sphinx/issues>. Thanks!
__________________________________________________________________________ test_am_replacer_writereprocessed[True] __________________________________________________________________________
tmpdir = local('/tmp/pytest-of-tkloczko/pytest-17/test_am_replacer_writereproces1'), writereprocessed = True
@pytest.mark.parametrize('writereprocessed', [False, True])
def test_am_replacer_writereprocessed(tmpdir, writereprocessed):
"""
Tests the automodapi_writereprocessed option
"""
with io_open(tmpdir.join('index.rst').strpath, 'w', encoding='utf-8') as f:
f.write(am_replacer_repr_str.format(options=''))
> run_sphinx_in_tmpdir(tmpdir, additional_conf={'automodapi_writereprocessed': writereprocessed})
sphinx_automodapi/tests/test_automodapi.py:110:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tmpdir = local('/tmp/pytest-of-tkloczko/pytest-17/test_am_replacer_writereproces1'), additional_conf = {'automodapi_writereprocessed': True}, expect_error = False
def run_sphinx_in_tmpdir(tmpdir, additional_conf={}, expect_error=False):
start_dir = os.path.abspath('.')
conf = deepcopy(DEFAULT_CONF)
conf.update(additional_conf)
write_conf(tmpdir.join('conf.py').strpath, conf)
argv = ['-W', '-b', 'html', '.', '_build/html']
try:
os.chdir(tmpdir.strpath)
status = build_main(argv=argv)
finally:
os.chdir(start_dir)
if expect_error:
assert status != 0
else:
> assert status == 0
E AssertionError
sphinx_automodapi/tests/helpers.py:57: AssertionError
----------------------------------------------------------------------------------- Captured stdout call ------------------------------------------------------------------------------------
Running Sphinx v6.1.3
----------------------------------------------------------------------------------- Captured stderr call ------------------------------------------------------------------------------------
Exception occurred:
File "/usr/lib/python3.8/site-packages/sphinx/deprecation.py", line 46, in __getattr__
warnings.warn(f"The alias '{self._modname}.{name}' is deprecated, "
sphinx.deprecation.RemovedInSphinx80Warning: The alias 'sphinx.util.progress_message' is deprecated, use 'sphinx.util.display.progress_message' instead. Check CHANGES for Sphinx API modifications.
The full traceback has been saved in /tmp/sphinx-err-hgf94lqe.log, if you want to report the issue to the developers.
Please also report this if it was a user error, so that a better error message can be provided next time.
A bug report can be filed in the tracker at <https://github.com/sphinx-doc/sphinx/issues>. Thanks!
__________________________________________________________________________________ test_am_replacer_noinh ___________________________________________________________________________________
tmpdir = local('/tmp/pytest-of-tkloczko/pytest-17/test_am_replacer_noinh0')
def test_am_replacer_noinh(tmpdir):
"""
Tests replacing an ".. automodapi::" with no-inheritance-diagram
option
"""
ops = ['', ':no-inheritance-diagram:']
ostr = '\n '.join(ops)
with open(tmpdir.join('index.rst').strpath, 'w') as f:
f.write(am_replacer_str.format(options=ostr))
> run_sphinx_in_tmpdir(tmpdir)
sphinx_automodapi/tests/test_automodapi.py:155:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tmpdir = local('/tmp/pytest-of-tkloczko/pytest-17/test_am_replacer_noinh0'), additional_conf = {}, expect_error = False
def run_sphinx_in_tmpdir(tmpdir, additional_conf={}, expect_error=False):
start_dir = os.path.abspath('.')
conf = deepcopy(DEFAULT_CONF)
conf.update(additional_conf)
write_conf(tmpdir.join('conf.py').strpath, conf)
argv = ['-W', '-b', 'html', '.', '_build/html']
try:
os.chdir(tmpdir.strpath)
status = build_main(argv=argv)
finally:
os.chdir(start_dir)
if expect_error:
assert status != 0
else:
> assert status == 0
E AssertionError
sphinx_automodapi/tests/helpers.py:57: AssertionError
----------------------------------------------------------------------------------- Captured stdout call ------------------------------------------------------------------------------------
Running Sphinx v6.1.3
----------------------------------------------------------------------------------- Captured stderr call ------------------------------------------------------------------------------------
Exception occurred:
File "/usr/lib/python3.8/site-packages/sphinx/deprecation.py", line 46, in __getattr__
warnings.warn(f"The alias '{self._modname}.{name}' is deprecated, "
sphinx.deprecation.RemovedInSphinx80Warning: The alias 'sphinx.util.progress_message' is deprecated, use 'sphinx.util.display.progress_message' instead. Check CHANGES for Sphinx API modifications.
The full traceback has been saved in /tmp/sphinx-err-fn06y7bf.log, if you want to report the issue to the developers.
Please also report this if it was a user error, so that a better error message can be provided next time.
A bug report can be filed in the tracker at <https://github.com/sphinx-doc/sphinx/issues>. Thanks!
_______________________________________________________________________________ test_am_replacer_titleandhdrs _______________________________________________________________________________
tmpdir = local('/tmp/pytest-of-tkloczko/pytest-17/test_am_replacer_titleandhdrs0')
def test_am_replacer_titleandhdrs(tmpdir):
"""
Tests replacing an ".. automodapi::" entry with title-setting and header
character options.
"""
ops = ['', ':headings: &*']
ostr = '\n '.join(ops)
with open(tmpdir.join('index.rst').strpath, 'w') as f:
f.write(am_replacer_str.format(options=ostr))
> run_sphinx_in_tmpdir(tmpdir)
sphinx_automodapi/tests/test_automodapi.py:210:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tmpdir = local('/tmp/pytest-of-tkloczko/pytest-17/test_am_replacer_titleandhdrs0'), additional_conf = {}, expect_error = False
def run_sphinx_in_tmpdir(tmpdir, additional_conf={}, expect_error=False):
start_dir = os.path.abspath('.')
conf = deepcopy(DEFAULT_CONF)
conf.update(additional_conf)
write_conf(tmpdir.join('conf.py').strpath, conf)
argv = ['-W', '-b', 'html', '.', '_build/html']
try:
os.chdir(tmpdir.strpath)
status = build_main(argv=argv)
finally:
os.chdir(start_dir)
if expect_error:
assert status != 0
else:
> assert status == 0
E AssertionError
sphinx_automodapi/tests/helpers.py:57: AssertionError
----------------------------------------------------------------------------------- Captured stdout call ------------------------------------------------------------------------------------
Running Sphinx v6.1.3
----------------------------------------------------------------------------------- Captured stderr call ------------------------------------------------------------------------------------
Exception occurred:
File "/usr/lib/python3.8/site-packages/sphinx/deprecation.py", line 46, in __getattr__
warnings.warn(f"The alias '{self._modname}.{name}' is deprecated, "
sphinx.deprecation.RemovedInSphinx80Warning: The alias 'sphinx.util.progress_message' is deprecated, use 'sphinx.util.display.progress_message' instead. Check CHANGES for Sphinx API modifications.
The full traceback has been saved in /tmp/sphinx-err-2ty0oj26.log, if you want to report the issue to the developers.
Please also report this if it was a user error, so that a better error message can be provided next time.
A bug report can be filed in the tracker at <https://github.com/sphinx-doc/sphinx/issues>. Thanks!
___________________________________________________________________________ test_am_replacer_titleandhdrs_invalid ___________________________________________________________________________
tmpdir = local('/tmp/pytest-of-tkloczko/pytest-17/test_am_replacer_titleandhdrs_0'), capsys = <_pytest.capture.CaptureFixture object at 0x7f3cc23adf70>
def test_am_replacer_titleandhdrs_invalid(tmpdir, capsys):
"""
Tests replacing an ".. automodapi::" entry with title-setting and header
character options.
"""
ops = ['', ':headings: &']
ostr = '\n '.join(ops)
with open(tmpdir.join('index.rst').strpath, 'w') as f:
f.write(am_replacer_str.format(options=ostr))
run_sphinx_in_tmpdir(tmpdir, expect_error=True)
stdout, stderr = capsys.readouterr()
> assert "Not enough headings (got 1, need 2), using default -^" in stderr
E assert 'Not enough headings (got 1, need 2), using default -^' in '\nException occurred:\n File "/usr/lib/python3.8/site-packages/sphinx/deprecation.py", line 46, in __getattr__\n ...vided next time.\nA bug report can be filed in the tracker at <https://github.com/sphinx-doc/sphinx/issues>. Thanks!\n'
sphinx_automodapi/tests/test_automodapi.py:233: AssertionError
__________________________________________________________________________________ test_am_replacer_nomain __________________________________________________________________________________
tmpdir = local('/tmp/pytest-of-tkloczko/pytest-17/test_am_replacer_nomain0')
def test_am_replacer_nomain(tmpdir):
"""
Tests replacing an ".. automodapi::" with "no-main-docstring" .
"""
with open(tmpdir.join('index.rst').strpath, 'w') as f:
f.write(am_replacer_nomain_str.format(options=''))
> run_sphinx_in_tmpdir(tmpdir)
sphinx_automodapi/tests/test_automodapi.py:274:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tmpdir = local('/tmp/pytest-of-tkloczko/pytest-17/test_am_replacer_nomain0'), additional_conf = {}, expect_error = False
def run_sphinx_in_tmpdir(tmpdir, additional_conf={}, expect_error=False):
start_dir = os.path.abspath('.')
conf = deepcopy(DEFAULT_CONF)
conf.update(additional_conf)
write_conf(tmpdir.join('conf.py').strpath, conf)
argv = ['-W', '-b', 'html', '.', '_build/html']
try:
os.chdir(tmpdir.strpath)
status = build_main(argv=argv)
finally:
os.chdir(start_dir)
if expect_error:
assert status != 0
else:
> assert status == 0
E AssertionError
sphinx_automodapi/tests/helpers.py:57: AssertionError
----------------------------------------------------------------------------------- Captured stdout call ------------------------------------------------------------------------------------
Running Sphinx v6.1.3
----------------------------------------------------------------------------------- Captured stderr call ------------------------------------------------------------------------------------
Exception occurred:
File "/usr/lib/python3.8/site-packages/sphinx/deprecation.py", line 46, in __getattr__
warnings.warn(f"The alias '{self._modname}.{name}' is deprecated, "
sphinx.deprecation.RemovedInSphinx80Warning: The alias 'sphinx.util.progress_message' is deprecated, use 'sphinx.util.display.progress_message' instead. Check CHANGES for Sphinx API modifications.
The full traceback has been saved in /tmp/sphinx-err-usbegfjw.log, if you want to report the issue to the developers.
Please also report this if it was a user error, so that a better error message can be provided next time.
A bug report can be filed in the tracker at <https://github.com/sphinx-doc/sphinx/issues>. Thanks!
___________________________________________________________________________________ test_am_replacer_skip ___________________________________________________________________________________
tmpdir = local('/tmp/pytest-of-tkloczko/pytest-17/test_am_replacer_skip0')
def test_am_replacer_skip(tmpdir):
"""
Tests using the ":skip: option in an ".. automodapi::" .
"""
with open(tmpdir.join('index.rst').strpath, 'w') as f:
f.write(am_replacer_skip_str.format(options=''))
> run_sphinx_in_tmpdir(tmpdir)
sphinx_automodapi/tests/test_automodapi.py:322:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tmpdir = local('/tmp/pytest-of-tkloczko/pytest-17/test_am_replacer_skip0'), additional_conf = {}, expect_error = False
def run_sphinx_in_tmpdir(tmpdir, additional_conf={}, expect_error=False):
start_dir = os.path.abspath('.')
conf = deepcopy(DEFAULT_CONF)
conf.update(additional_conf)
write_conf(tmpdir.join('conf.py').strpath, conf)
argv = ['-W', '-b', 'html', '.', '_build/html']
try:
os.chdir(tmpdir.strpath)
status = build_main(argv=argv)
finally:
os.chdir(start_dir)
if expect_error:
assert status != 0
else:
> assert status == 0
E AssertionError
sphinx_automodapi/tests/helpers.py:57: AssertionError
----------------------------------------------------------------------------------- Captured stdout call ------------------------------------------------------------------------------------
Running Sphinx v6.1.3
----------------------------------------------------------------------------------- Captured stderr call ------------------------------------------------------------------------------------
Exception occurred:
File "/usr/lib/python3.8/site-packages/sphinx/deprecation.py", line 46, in __getattr__
warnings.warn(f"The alias '{self._modname}.{name}' is deprecated, "
sphinx.deprecation.RemovedInSphinx80Warning: The alias 'sphinx.util.progress_message' is deprecated, use 'sphinx.util.display.progress_message' instead. Check CHANGES for Sphinx API modifications.
The full traceback has been saved in /tmp/sphinx-err-oot95u3r.log, if you want to report the issue to the developers.
Please also report this if it was a user error, so that a better error message can be provided next time.
A bug report can be filed in the tracker at <https://github.com/sphinx-doc/sphinx/issues>. Thanks!
_______________________________________________________________________________ test_am_replacer_skip_stdlib ________________________________________________________________________________
tmpdir = local('/tmp/pytest-of-tkloczko/pytest-17/test_am_replacer_skip_stdlib0')
def test_am_replacer_skip_stdlib(tmpdir):
"""
Tests using the ":skip:" option in an ".. automodapi::"
that skips objects imported from the standard library.
This is a regression test for #141
"""
with open(tmpdir.join('index.rst').strpath, 'w') as f:
f.write(am_replacer_skip_stdlib_str.format(options=''))
> run_sphinx_in_tmpdir(tmpdir)
sphinx_automodapi/tests/test_automodapi.py:373:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tmpdir = local('/tmp/pytest-of-tkloczko/pytest-17/test_am_replacer_skip_stdlib0'), additional_conf = {}, expect_error = False
def run_sphinx_in_tmpdir(tmpdir, additional_conf={}, expect_error=False):
start_dir = os.path.abspath('.')
conf = deepcopy(DEFAULT_CONF)
conf.update(additional_conf)
write_conf(tmpdir.join('conf.py').strpath, conf)
argv = ['-W', '-b', 'html', '.', '_build/html']
try:
os.chdir(tmpdir.strpath)
status = build_main(argv=argv)
finally:
os.chdir(start_dir)
if expect_error:
assert status != 0
else:
> assert status == 0
E AssertionError
sphinx_automodapi/tests/helpers.py:57: AssertionError
----------------------------------------------------------------------------------- Captured stdout call ------------------------------------------------------------------------------------
Running Sphinx v6.1.3
----------------------------------------------------------------------------------- Captured stderr call ------------------------------------------------------------------------------------
Exception occurred:
File "/usr/lib/python3.8/site-packages/sphinx/deprecation.py", line 46, in __getattr__
warnings.warn(f"The alias '{self._modname}.{name}' is deprecated, "
sphinx.deprecation.RemovedInSphinx80Warning: The alias 'sphinx.util.progress_message' is deprecated, use 'sphinx.util.display.progress_message' instead. Check CHANGES for Sphinx API modifications.
The full traceback has been saved in /tmp/sphinx-err-5wspc1z7.log, if you want to report the issue to the developers.
Please also report this if it was a user error, so that a better error message can be provided next time.
A bug report can be filed in the tracker at <https://github.com/sphinx-doc/sphinx/issues>. Thanks!
______________________________________________________________________________ test_am_replacer_include_stdlib ______________________________________________________________________________
tmpdir = local('/tmp/pytest-of-tkloczko/pytest-17/test_am_replacer_include_stdli0')
def test_am_replacer_include_stdlib(tmpdir):
"""
Tests using the ":include: option in an ".. automodapi::"
in the presence of objects imported from the standard library.
"""
with open(tmpdir.join('index.rst').strpath, 'w') as f:
f.write(am_replacer_include_stdlib_str.format(options=''))
> run_sphinx_in_tmpdir(tmpdir)
sphinx_automodapi/tests/test_automodapi.py:423:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tmpdir = local('/tmp/pytest-of-tkloczko/pytest-17/test_am_replacer_include_stdli0'), additional_conf = {}, expect_error = False
def run_sphinx_in_tmpdir(tmpdir, additional_conf={}, expect_error=False):
start_dir = os.path.abspath('.')
conf = deepcopy(DEFAULT_CONF)
conf.update(additional_conf)
write_conf(tmpdir.join('conf.py').strpath, conf)
argv = ['-W', '-b', 'html', '.', '_build/html']
try:
os.chdir(tmpdir.strpath)
status = build_main(argv=argv)
finally:
os.chdir(start_dir)
if expect_error:
assert status != 0
else:
> assert status == 0
E AssertionError
sphinx_automodapi/tests/helpers.py:57: AssertionError
----------------------------------------------------------------------------------- Captured stdout call ------------------------------------------------------------------------------------
Running Sphinx v6.1.3
----------------------------------------------------------------------------------- Captured stderr call ------------------------------------------------------------------------------------
Exception occurred:
File "/usr/lib/python3.8/site-packages/sphinx/deprecation.py", line 46, in __getattr__
warnings.warn(f"The alias '{self._modname}.{name}' is deprecated, "
sphinx.deprecation.RemovedInSphinx80Warning: The alias 'sphinx.util.progress_message' is deprecated, use 'sphinx.util.display.progress_message' instead. Check CHANGES for Sphinx API modifications.
The full traceback has been saved in /tmp/sphinx-err-f42us6xz.log, if you want to report the issue to the developers.
Please also report this if it was a user error, so that a better error message can be provided next time.
A bug report can be filed in the tracker at <https://github.com/sphinx-doc/sphinx/issues>. Thanks!
_________________________________________________________________________________ test_am_replacer_include __________________________________________________________________________________
tmpdir = local('/tmp/pytest-of-tkloczko/pytest-17/test_am_replacer_include0')
def test_am_replacer_include(tmpdir):
"""
Tests using the ":include: option in an ".. automodapi::" .
"""
with open(tmpdir.join('index.rst').strpath, 'w') as f:
f.write(am_replacer_include_str.format(options=''))
> run_sphinx_in_tmpdir(tmpdir)
sphinx_automodapi/tests/test_automodapi.py:471:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tmpdir = local('/tmp/pytest-of-tkloczko/pytest-17/test_am_replacer_include0'), additional_conf = {}, expect_error = False
def run_sphinx_in_tmpdir(tmpdir, additional_conf={}, expect_error=False):
start_dir = os.path.abspath('.')
conf = deepcopy(DEFAULT_CONF)
conf.update(additional_conf)
write_conf(tmpdir.join('conf.py').strpath, conf)
argv = ['-W', '-b', 'html', '.', '_build/html']
try:
os.chdir(tmpdir.strpath)
status = build_main(argv=argv)
finally:
os.chdir(start_dir)
if expect_error:
assert status != 0
else:
> assert status == 0
E AssertionError
sphinx_automodapi/tests/helpers.py:57: AssertionError
----------------------------------------------------------------------------------- Captured stdout call ------------------------------------------------------------------------------------
Running Sphinx v6.1.3
----------------------------------------------------------------------------------- Captured stderr call ------------------------------------------------------------------------------------
Exception occurred:
File "/usr/lib/python3.8/site-packages/sphinx/deprecation.py", line 46, in __getattr__
warnings.warn(f"The alias '{self._modname}.{name}' is deprecated, "
sphinx.deprecation.RemovedInSphinx80Warning: The alias 'sphinx.util.progress_message' is deprecated, use 'sphinx.util.display.progress_message' instead. Check CHANGES for Sphinx API modifications.
The full traceback has been saved in /tmp/sphinx-err-s50vipml.log, if you want to report the issue to the developers.
Please also report this if it was a user error, so that a better error message can be provided next time.
A bug report can be filed in the tracker at <https://github.com/sphinx-doc/sphinx/issues>. Thanks!
________________________________________________________________________________ test_am_replacer_invalidop _________________________________________________________________________________
tmpdir = local('/tmp/pytest-of-tkloczko/pytest-17/test_am_replacer_invalidop0'), capsys = <_pytest.capture.CaptureFixture object at 0x7f3cc2356310>
def test_am_replacer_invalidop(tmpdir, capsys):
"""
Tests that a sphinx warning is produced with an invalid option.
"""
with open(tmpdir.join('index.rst').strpath, 'w') as f:
f.write(am_replacer_invalidop_str.format(options=''))
run_sphinx_in_tmpdir(tmpdir, expect_error=True)
stdout, stderr = capsys.readouterr()
> assert "Found additional options invalid-option in automodapi." in stderr
E assert 'Found additional options invalid-option in automodapi.' in '\nException occurred:\n File "/usr/lib/python3.8/site-packages/sphinx/deprecation.py", line 46, in __getattr__\n ...vided next time.\nA bug report can be filed in the tracker at <https://github.com/sphinx-doc/sphinx/issues>. Thanks!\n'
sphinx_automodapi/tests/test_automodapi.py:500: AssertionError
__________________________________________________________________________________ test_am_replacer_cython __________________________________________________________________________________
tmpdir = local('/tmp/pytest-of-tkloczko/pytest-17/test_am_replacer_cython0'), cython_testpackage = local('/tmp/pytest-of-tkloczko/pytest-17/test_am_replacer_cython0/test_pkg')
def test_am_replacer_cython(tmpdir, cython_testpackage): # noqa
"""
Tests replacing an ".. automodapi::" for a Cython module.
"""
with open(tmpdir.join('index.rst').strpath, 'w') as f:
f.write(am_replacer_cython_str.format(options=''))
> run_sphinx_in_tmpdir(tmpdir)
sphinx_automodapi/tests/test_automodapi.py:540:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tmpdir = local('/tmp/pytest-of-tkloczko/pytest-17/test_am_replacer_cython0'), additional_conf = {}, expect_error = False
def run_sphinx_in_tmpdir(tmpdir, additional_conf={}, expect_error=False):
start_dir = os.path.abspath('.')
conf = deepcopy(DEFAULT_CONF)
conf.update(additional_conf)
write_conf(tmpdir.join('conf.py').strpath, conf)
argv = ['-W', '-b', 'html', '.', '_build/html']
try:
os.chdir(tmpdir.strpath)
status = build_main(argv=argv)
finally:
os.chdir(start_dir)
if expect_error:
assert status != 0
else:
> assert status == 0
E AssertionError
sphinx_automodapi/tests/helpers.py:57: AssertionError
----------------------------------------------------------------------------------- Captured stdout setup -----------------------------------------------------------------------------------
running build_ext
cythoning apyhtest_eva/unit02.pyx to apyhtest_eva/unit02.c
building 'apyhtest_eva.unit02' extension
creating build
creating build/temp.linux-x86_64-cpython-38
creating build/temp.linux-x86_64-cpython-38/apyhtest_eva
/usr/bin/gcc -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -D_GNU_SOURCE -fPIC -fwrapv -ffat-lto-objects -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -D_GNU_SOURCE -fPIC -fwrapv -ffat-lto-objects -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -D_GNU_SOURCE -fPIC -fwrapv -ffat-lto-objects -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -fPIC -I/usr/include/python3.8 -c apyhtest_eva/unit02.c -o build/temp.linux-x86_64-cpython-38/apyhtest_eva/unit02.o
creating build/lib.linux-x86_64-cpython-38
creating build/lib.linux-x86_64-cpython-38/apyhtest_eva
/usr/bin/gcc -shared -Wl,--as-needed -Wl,--gc-sections -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -flto=auto -flto-partition=none -fuse-linker-plugin -Wl,--build-id=sha1 -Wl,--as-needed -Wl,--gc-sections -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -flto=auto -flto-partition=none -fuse-linker-plugin -Wl,--build-id=sha1 -Wl,--as-needed -Wl,--gc-sections -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -flto=auto -flto-partition=none -fuse-linker-plugin -Wl,--build-id=sha1 -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none build/temp.linux-x86_64-cpython-38/apyhtest_eva/unit02.o -L/usr/lib64 -o build/lib.linux-x86_64-cpython-38/apyhtest_eva/unit02.cpython-38-x86_64-linux-gnu.so
copying build/lib.linux-x86_64-cpython-38/apyhtest_eva/unit02.cpython-38-x86_64-linux-gnu.so -> apyhtest_eva
----------------------------------------------------------------------------------- Captured stderr setup -----------------------------------------------------------------------------------
/usr/lib64/python3.8/site-packages/Cython/Compiler/Main.py:369: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: /tmp/pytest-of-tkloczko/pytest-17/test_am_replacer_cython0/test_pkg/apyhtest_eva/unit02.pyx
tree = Parsing.p_module(s, pxd, full_module_name)
----------------------------------------------------------------------------------- Captured stdout call ------------------------------------------------------------------------------------
Running Sphinx v6.1.3
----------------------------------------------------------------------------------- Captured stderr call ------------------------------------------------------------------------------------
Exception occurred:
File "/usr/lib/python3.8/site-packages/sphinx/deprecation.py", line 46, in __getattr__
warnings.warn(f"The alias '{self._modname}.{name}' is deprecated, "
sphinx.deprecation.RemovedInSphinx80Warning: The alias 'sphinx.util.progress_message' is deprecated, use 'sphinx.util.display.progress_message' instead. Check CHANGES for Sphinx API modifications.
The full traceback has been saved in /tmp/sphinx-err-4zzk3of3.log, if you want to report the issue to the developers.
Please also report this if it was a user error, so that a better error message can be provided next time.
A bug report can be filed in the tracker at <https://github.com/sphinx-doc/sphinx/issues>. Thanks!
_____________________________________________________________________________________ test_ams_to_asmry _____________________________________________________________________________________
tmpdir = local('/tmp/pytest-of-tkloczko/pytest-17/test_ams_to_asmry0')
def test_ams_to_asmry(tmpdir):
with open(tmpdir.join('index.rst').strpath, 'w') as f:
f.write(ams_to_asmry_str.format(options=''))
write_api_files_to_tmpdir(tmpdir)
> run_sphinx_in_tmpdir(tmpdir)
sphinx_automodapi/tests/test_automodsumm.py:86:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tmpdir = local('/tmp/pytest-of-tkloczko/pytest-17/test_ams_to_asmry0'), additional_conf = {}, expect_error = False
def run_sphinx_in_tmpdir(tmpdir, additional_conf={}, expect_error=False):
start_dir = os.path.abspath('.')
conf = deepcopy(DEFAULT_CONF)
conf.update(additional_conf)
write_conf(tmpdir.join('conf.py').strpath, conf)
argv = ['-W', '-b', 'html', '.', '_build/html']
try:
os.chdir(tmpdir.strpath)
status = build_main(argv=argv)
finally:
os.chdir(start_dir)
if expect_error:
assert status != 0
else:
> assert status == 0
E AssertionError
sphinx_automodapi/tests/helpers.py:57: AssertionError
----------------------------------------------------------------------------------- Captured stdout call ------------------------------------------------------------------------------------
Running Sphinx v6.1.3
----------------------------------------------------------------------------------- Captured stderr call ------------------------------------------------------------------------------------
Exception occurred:
File "/usr/lib/python3.8/site-packages/sphinx/deprecation.py", line 46, in __getattr__
warnings.warn(f"The alias '{self._modname}.{name}' is deprecated, "
sphinx.deprecation.RemovedInSphinx80Warning: The alias 'sphinx.util.progress_message' is deprecated, use 'sphinx.util.display.progress_message' instead. Check CHANGES for Sphinx API modifications.
The full traceback has been saved in /tmp/sphinx-err-fu05dw2c.log, if you want to report the issue to the developers.
Please also report this if it was a user error, so that a better error message can be provided next time.
A bug report can be filed in the tracker at <https://github.com/sphinx-doc/sphinx/issues>. Thanks!
___________________________________________________________________________________ test_too_many_options ___________________________________________________________________________________
tmpdir = local('/tmp/pytest-of-tkloczko/pytest-17/test_too_many_options0'), capsys = <_pytest.capture.CaptureFixture object at 0x7f3cc23222e0>
def test_too_many_options(tmpdir, capsys):
ops = ['', ':classes-only:', ':functions-only:']
ostr = '\n '.join(ops)
with open(tmpdir.join('index.rst').strpath, 'w') as f:
f.write(ams_to_asmry_str.format(options=ostr))
write_api_files_to_tmpdir(tmpdir)
run_sphinx_in_tmpdir(tmpdir, expect_error=True)
stdout, stderr = capsys.readouterr()
> assert ("[automodsumm] Defined more than one of functions-only, "
"classes-only, and variables-only. Skipping this directive." in stderr)
E assert '[automodsumm] Defined more than one of functions-only, classes-only, and variables-only. Skipping this directive.' in '\nException occurred:\n File "/usr/lib/python3.8/site-packages/sphinx/deprecation.py", line 46, in __getattr__\n ...vided next time.\nA bug report can be filed in the tracker at <https://github.com/sphinx-doc/sphinx/issues>. Thanks!\n'
sphinx_automodapi/tests/test_automodsumm.py:107: AssertionError
__________________________________________________________________________ test_am_allowed_package_names[-expect0] __________________________________________________________________________
options = '', expect = ['add', 'MixedSpam'], tmpdir = local('/tmp/pytest-of-tkloczko/pytest-17/test_am_allowed_package_names_0')
@pytest.mark.parametrize('options,expect', [
('', ['add', 'MixedSpam']),
(':allowed-package-names: sphinx_automodapi', ['add', 'MixedSpam']),
(':allowed-package-names: collections', ['OrderedDict']),
(':allowed-package-names: sphinx_automodapi,collections',
['add', 'MixedSpam', 'OrderedDict']),
])
def test_am_allowed_package_names(options, expect, tmpdir):
"""
Test that allowed_package_names is interpreted correctly.
"""
def mixed2noall(s):
return s.replace('example_module.mixed', 'example_module.noall')
am_str = ams_to_asmry_str
with open(tmpdir.join('index.rst').strpath, 'w') as f:
f.write(mixed2noall(am_str).format(options=(' '+options if options else '')))
apidir = tmpdir.mkdir('api')
with open(apidir.join('sphinx_automodapi.tests.example_module.noall.add.rst').strpath, 'w') as f:
f.write(mixed2noall(ADD_RST))
with open(apidir.join('sphinx_automodapi.tests.example_module.noall.MixedSpam.rst').strpath, 'w') as f:
f.write(mixed2noall(MIXEDSPAM_RST))
with open(apidir.join('sphinx_automodapi.tests.example_module.noall.OrderedDict.rst').strpath, 'w') as f:
f.write(ORDEREDDICT_RST)
> run_sphinx_in_tmpdir(tmpdir)
sphinx_automodapi/tests/test_automodsumm.py:150:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tmpdir = local('/tmp/pytest-of-tkloczko/pytest-17/test_am_allowed_package_names_0'), additional_conf = {}, expect_error = False
def run_sphinx_in_tmpdir(tmpdir, additional_conf={}, expect_error=False):
start_dir = os.path.abspath('.')
conf = deepcopy(DEFAULT_CONF)
conf.update(additional_conf)
write_conf(tmpdir.join('conf.py').strpath, conf)
argv = ['-W', '-b', 'html', '.', '_build/html']
try:
os.chdir(tmpdir.strpath)
status = build_main(argv=argv)
finally:
os.chdir(start_dir)
if expect_error:
assert status != 0
else:
> assert status == 0
E AssertionError
sphinx_automodapi/tests/helpers.py:57: AssertionError
----------------------------------------------------------------------------------- Captured stdout call ------------------------------------------------------------------------------------
Running Sphinx v6.1.3
----------------------------------------------------------------------------------- Captured stderr call ------------------------------------------------------------------------------------
Exception occurred:
File "/usr/lib/python3.8/site-packages/sphinx/deprecation.py", line 46, in __getattr__
warnings.warn(f"The alias '{self._modname}.{name}' is deprecated, "
sphinx.deprecation.RemovedInSphinx80Warning: The alias 'sphinx.util.progress_message' is deprecated, use 'sphinx.util.display.progress_message' instead. Check CHANGES for Sphinx API modifications.
The full traceback has been saved in /tmp/sphinx-err-03si6q_o.log, if you want to report the issue to the developers.
Please also report this if it was a user error, so that a better error message can be provided next time.
A bug report can be filed in the tracker at <https://github.com/sphinx-doc/sphinx/issues>. Thanks!
_____________________________________________________ test_am_allowed_package_names[:allowed-package-names: sphinx_automodapi-expect1] ______________________________________________________
options = ':allowed-package-names: sphinx_automodapi', expect = ['add', 'MixedSpam'], tmpdir = local('/tmp/pytest-of-tkloczko/pytest-17/test_am_allowed_package_names_1')
@pytest.mark.parametrize('options,expect', [
('', ['add', 'MixedSpam']),
(':allowed-package-names: sphinx_automodapi', ['add', 'MixedSpam']),
(':allowed-package-names: collections', ['OrderedDict']),
(':allowed-package-names: sphinx_automodapi,collections',
['add', 'MixedSpam', 'OrderedDict']),
])
def test_am_allowed_package_names(options, expect, tmpdir):
"""
Test that allowed_package_names is interpreted correctly.
"""
def mixed2noall(s):
return s.replace('example_module.mixed', 'example_module.noall')
am_str = ams_to_asmry_str
with open(tmpdir.join('index.rst').strpath, 'w') as f:
f.write(mixed2noall(am_str).format(options=(' '+options if options else '')))
apidir = tmpdir.mkdir('api')
with open(apidir.join('sphinx_automodapi.tests.example_module.noall.add.rst').strpath, 'w') as f:
f.write(mixed2noall(ADD_RST))
with open(apidir.join('sphinx_automodapi.tests.example_module.noall.MixedSpam.rst').strpath, 'w') as f:
f.write(mixed2noall(MIXEDSPAM_RST))
with open(apidir.join('sphinx_automodapi.tests.example_module.noall.OrderedDict.rst').strpath, 'w') as f:
f.write(ORDEREDDICT_RST)
> run_sphinx_in_tmpdir(tmpdir)
sphinx_automodapi/tests/test_automodsumm.py:150:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tmpdir = local('/tmp/pytest-of-tkloczko/pytest-17/test_am_allowed_package_names_1'), additional_conf = {}, expect_error = False
def run_sphinx_in_tmpdir(tmpdir, additional_conf={}, expect_error=False):
start_dir = os.path.abspath('.')
conf = deepcopy(DEFAULT_CONF)
conf.update(additional_conf)
write_conf(tmpdir.join('conf.py').strpath, conf)
argv = ['-W', '-b', 'html', '.', '_build/html']
try:
os.chdir(tmpdir.strpath)
status = build_main(argv=argv)
finally:
os.chdir(start_dir)
if expect_error:
assert status != 0
else:
> assert status == 0
E AssertionError
sphinx_automodapi/tests/helpers.py:57: AssertionError
----------------------------------------------------------------------------------- Captured stdout call ------------------------------------------------------------------------------------
Running Sphinx v6.1.3
----------------------------------------------------------------------------------- Captured stderr call ------------------------------------------------------------------------------------
Exception occurred:
File "/usr/lib/python3.8/site-packages/sphinx/deprecation.py", line 46, in __getattr__
warnings.warn(f"The alias '{self._modname}.{name}' is deprecated, "
sphinx.deprecation.RemovedInSphinx80Warning: The alias 'sphinx.util.progress_message' is deprecated, use 'sphinx.util.display.progress_message' instead. Check CHANGES for Sphinx API modifications.
The full traceback has been saved in /tmp/sphinx-err-c6unmcw0.log, if you want to report the issue to the developers.
Please also report this if it was a user error, so that a better error message can be provided next time.
A bug report can be filed in the tracker at <https://github.com/sphinx-doc/sphinx/issues>. Thanks!
________________________________________________________ test_am_allowed_package_names[:allowed-package-names: collections-expect2] _________________________________________________________
options = ':allowed-package-names: collections', expect = ['OrderedDict'], tmpdir = local('/tmp/pytest-of-tkloczko/pytest-17/test_am_allowed_package_names_2')
@pytest.mark.parametrize('options,expect', [
('', ['add', 'MixedSpam']),
(':allowed-package-names: sphinx_automodapi', ['add', 'MixedSpam']),
(':allowed-package-names: collections', ['OrderedDict']),
(':allowed-package-names: sphinx_automodapi,collections',
['add', 'MixedSpam', 'OrderedDict']),
])
def test_am_allowed_package_names(options, expect, tmpdir):
"""
Test that allowed_package_names is interpreted correctly.
"""
def mixed2noall(s):
return s.replace('example_module.mixed', 'example_module.noall')
am_str = ams_to_asmry_str
with open(tmpdir.join('index.rst').strpath, 'w') as f:
f.write(mixed2noall(am_str).format(options=(' '+options if options else '')))
apidir = tmpdir.mkdir('api')
with open(apidir.join('sphinx_automodapi.tests.example_module.noall.add.rst').strpath, 'w') as f:
f.write(mixed2noall(ADD_RST))
with open(apidir.join('sphinx_automodapi.tests.example_module.noall.MixedSpam.rst').strpath, 'w') as f:
f.write(mixed2noall(MIXEDSPAM_RST))
with open(apidir.join('sphinx_automodapi.tests.example_module.noall.OrderedDict.rst').strpath, 'w') as f:
f.write(ORDEREDDICT_RST)
> run_sphinx_in_tmpdir(tmpdir)
sphinx_automodapi/tests/test_automodsumm.py:150:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tmpdir = local('/tmp/pytest-of-tkloczko/pytest-17/test_am_allowed_package_names_2'), additional_conf = {}, expect_error = False
def run_sphinx_in_tmpdir(tmpdir, additional_conf={}, expect_error=False):
start_dir = os.path.abspath('.')
conf = deepcopy(DEFAULT_CONF)
conf.update(additional_conf)
write_conf(tmpdir.join('conf.py').strpath, conf)
argv = ['-W', '-b', 'html', '.', '_build/html']
try:
os.chdir(tmpdir.strpath)
status = build_main(argv=argv)
finally:
os.chdir(start_dir)
if expect_error:
assert status != 0
else:
> assert status == 0
E AssertionError
sphinx_automodapi/tests/helpers.py:57: AssertionError
----------------------------------------------------------------------------------- Captured stdout call ------------------------------------------------------------------------------------
Running Sphinx v6.1.3
----------------------------------------------------------------------------------- Captured stderr call ------------------------------------------------------------------------------------
Exception occurred:
File "/usr/lib/python3.8/site-packages/sphinx/deprecation.py", line 46, in __getattr__
warnings.warn(f"The alias '{self._modname}.{name}' is deprecated, "
sphinx.deprecation.RemovedInSphinx80Warning: The alias 'sphinx.util.progress_message' is deprecated, use 'sphinx.util.display.progress_message' instead. Check CHANGES for Sphinx API modifications.
The full traceback has been saved in /tmp/sphinx-err-6caf1k4y.log, if you want to report the issue to the developers.
Please also report this if it was a user error, so that a better error message can be provided next time.
A bug report can be filed in the tracker at <https://github.com/sphinx-doc/sphinx/issues>. Thanks!
_______________________________________________ test_am_allowed_package_names[:allowed-package-names: sphinx_automodapi,collections-expect3] ________________________________________________
options = ':allowed-package-names: sphinx_automodapi,collections', expect = ['add', 'MixedSpam', 'OrderedDict']
tmpdir = local('/tmp/pytest-of-tkloczko/pytest-17/test_am_allowed_package_names_3')
@pytest.mark.parametrize('options,expect', [
('', ['add', 'MixedSpam']),
(':allowed-package-names: sphinx_automodapi', ['add', 'MixedSpam']),
(':allowed-package-names: collections', ['OrderedDict']),
(':allowed-package-names: sphinx_automodapi,collections',
['add', 'MixedSpam', 'OrderedDict']),
])
def test_am_allowed_package_names(options, expect, tmpdir):
"""
Test that allowed_package_names is interpreted correctly.
"""
def mixed2noall(s):
return s.replace('example_module.mixed', 'example_module.noall')
am_str = ams_to_asmry_str
with open(tmpdir.join('index.rst').strpath, 'w') as f:
f.write(mixed2noall(am_str).format(options=(' '+options if options else '')))
apidir = tmpdir.mkdir('api')
with open(apidir.join('sphinx_automodapi.tests.example_module.noall.add.rst').strpath, 'w') as f:
f.write(mixed2noall(ADD_RST))
with open(apidir.join('sphinx_automodapi.tests.example_module.noall.MixedSpam.rst').strpath, 'w') as f:
f.write(mixed2noall(MIXEDSPAM_RST))
with open(apidir.join('sphinx_automodapi.tests.example_module.noall.OrderedDict.rst').strpath, 'w') as f:
f.write(ORDEREDDICT_RST)
> run_sphinx_in_tmpdir(tmpdir)
sphinx_automodapi/tests/test_automodsumm.py:150:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tmpdir = local('/tmp/pytest-of-tkloczko/pytest-17/test_am_allowed_package_names_3'), additional_conf = {}, expect_error = False
def run_sphinx_in_tmpdir(tmpdir, additional_conf={}, expect_error=False):
start_dir = os.path.abspath('.')
conf = deepcopy(DEFAULT_CONF)
conf.update(additional_conf)
write_conf(tmpdir.join('conf.py').strpath, conf)
argv = ['-W', '-b', 'html', '.', '_build/html']
try:
os.chdir(tmpdir.strpath)
status = build_main(argv=argv)
finally:
os.chdir(start_dir)
if expect_error:
assert status != 0
else:
> assert status == 0
E AssertionError
sphinx_automodapi/tests/helpers.py:57: AssertionError
----------------------------------------------------------------------------------- Captured stdout call ------------------------------------------------------------------------------------
Running Sphinx v6.1.3
----------------------------------------------------------------------------------- Captured stderr call ------------------------------------------------------------------------------------
Exception occurred:
File "/usr/lib/python3.8/site-packages/sphinx/deprecation.py", line 46, in __getattr__
warnings.warn(f"The alias '{self._modname}.{name}' is deprecated, "
sphinx.deprecation.RemovedInSphinx80Warning: The alias 'sphinx.util.progress_message' is deprecated, use 'sphinx.util.display.progress_message' instead. Check CHANGES for Sphinx API modifications.
The full traceback has been saved in /tmp/sphinx-err-5ddir5ep.log, if you want to report the issue to the developers.
Please also report this if it was a user error, so that a better error message can be provided next time.
A bug report can be filed in the tracker at <https://github.com/sphinx-doc/sphinx/issues>. Thanks!
______________________________________________________________________________________ test_ams_cython ______________________________________________________________________________________
tmpdir = local('/tmp/pytest-of-tkloczko/pytest-17/test_ams_cython0'), cython_testpackage = local('/tmp/pytest-of-tkloczko/pytest-17/test_ams_cython0/test_pkg')
def test_ams_cython(tmpdir, cython_testpackage): # noqa
with open(tmpdir.join('index.rst').strpath, 'w') as f:
f.write(ams_cython_str)
apidir = tmpdir.mkdir('api')
with open(apidir.join('apyhtest_eva.unit02.pilot.rst').strpath, 'w') as f:
f.write(PILOT_RST)
> run_sphinx_in_tmpdir(tmpdir)
sphinx_automodapi/tests/test_automodsumm.py:198:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tmpdir = local('/tmp/pytest-of-tkloczko/pytest-17/test_ams_cython0'), additional_conf = {}, expect_error = False
def run_sphinx_in_tmpdir(tmpdir, additional_conf={}, expect_error=False):
start_dir = os.path.abspath('.')
conf = deepcopy(DEFAULT_CONF)
conf.update(additional_conf)
write_conf(tmpdir.join('conf.py').strpath, conf)
argv = ['-W', '-b', 'html', '.', '_build/html']
try:
os.chdir(tmpdir.strpath)
status = build_main(argv=argv)
finally:
os.chdir(start_dir)
if expect_error:
assert status != 0
else:
> assert status == 0
E AssertionError
sphinx_automodapi/tests/helpers.py:57: AssertionError
----------------------------------------------------------------------------------- Captured stdout setup -----------------------------------------------------------------------------------
running build_ext
cythoning apyhtest_eva/unit02.pyx to apyhtest_eva/unit02.c
building 'apyhtest_eva.unit02' extension
creating build
creating build/temp.linux-x86_64-cpython-38
creating build/temp.linux-x86_64-cpython-38/apyhtest_eva
/usr/bin/gcc -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -D_GNU_SOURCE -fPIC -fwrapv -ffat-lto-objects -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -D_GNU_SOURCE -fPIC -fwrapv -ffat-lto-objects -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -D_GNU_SOURCE -fPIC -fwrapv -ffat-lto-objects -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -fPIC -I/usr/include/python3.8 -c apyhtest_eva/unit02.c -o build/temp.linux-x86_64-cpython-38/apyhtest_eva/unit02.o
creating build/lib.linux-x86_64-cpython-38
creating build/lib.linux-x86_64-cpython-38/apyhtest_eva
/usr/bin/gcc -shared -Wl,--as-needed -Wl,--gc-sections -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -flto=auto -flto-partition=none -fuse-linker-plugin -Wl,--build-id=sha1 -Wl,--as-needed -Wl,--gc-sections -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -flto=auto -flto-partition=none -fuse-linker-plugin -Wl,--build-id=sha1 -Wl,--as-needed -Wl,--gc-sections -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -flto=auto -flto-partition=none -fuse-linker-plugin -Wl,--build-id=sha1 -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none build/temp.linux-x86_64-cpython-38/apyhtest_eva/unit02.o -L/usr/lib64 -o build/lib.linux-x86_64-cpython-38/apyhtest_eva/unit02.cpython-38-x86_64-linux-gnu.so
copying build/lib.linux-x86_64-cpython-38/apyhtest_eva/unit02.cpython-38-x86_64-linux-gnu.so -> apyhtest_eva
----------------------------------------------------------------------------------- Captured stderr setup -----------------------------------------------------------------------------------
/usr/lib64/python3.8/site-packages/Cython/Compiler/Main.py:369: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: /tmp/pytest-of-tkloczko/pytest-17/test_ams_cython0/test_pkg/apyhtest_eva/unit02.pyx
tree = Parsing.p_module(s, pxd, full_module_name)
----------------------------------------------------------------------------------- Captured stdout call ------------------------------------------------------------------------------------
Running Sphinx v6.1.3
----------------------------------------------------------------------------------- Captured stderr call ------------------------------------------------------------------------------------
Exception occurred:
File "/usr/lib/python3.8/site-packages/sphinx/deprecation.py", line 46, in __getattr__
warnings.warn(f"The alias '{self._modname}.{name}' is deprecated, "
sphinx.deprecation.RemovedInSphinx80Warning: The alias 'sphinx.util.progress_message' is deprecated, use 'sphinx.util.display.progress_message' instead. Check CHANGES for Sphinx API modifications.
The full traceback has been saved in /tmp/sphinx-err-p5oqgbhf.log, if you want to report the issue to the developers.
Please also report this if it was a user error, so that a better error message can be provided next time.
A bug report can be filed in the tracker at <https://github.com/sphinx-doc/sphinx/issues>. Thanks!
______________________________ test_run_full_case[/home/tkloczko/rpmbuild/BUILD/sphinx-automodapi-0.14.1/sphinx_automodapi/tests/cases/abstract_classes-False] ______________________________
tmpdir = local('/tmp/pytest-of-tkloczko/pytest-17/test_run_full_case__home_tkloc0')
case_dir = '/home/tkloczko/rpmbuild/BUILD/sphinx-automodapi-0.14.1/sphinx_automodapi/tests/cases/abstract_classes', parallel = False
@pytest.mark.parametrize(('case_dir', 'parallel'), product(CASES_DIRS, PARALLEL))
def test_run_full_case(tmpdir, case_dir, parallel):
input_dir = os.path.join(case_dir, 'input')
output_dir = os.path.join(case_dir, 'output')
docs_dir = tmpdir.mkdir('docs').strpath
conf = deepcopy(DEFAULT_CONF)
conf.update({'automodapi_toctreedirnm': 'api',
'automodapi_writereprocessed': True,
'automodsumm_writereprocessed': True})
if os.path.basename(case_dir) in ('mixed_toplevel',
'mixed_toplevel_all_objects',
'allowed_names'):
conf['extensions'].append('sphinx_automodapi.smart_resolver')
start_dir = os.path.abspath('.')
src_dir = 'src' if 'source_dir' in case_dir else '.'
ensuredir(os.path.join(docs_dir, src_dir))
write_conf(os.path.join(os.path.join(docs_dir, src_dir), 'conf.py'), conf)
for root, dirnames, filenames in os.walk(input_dir):
for filename in filenames:
root_dir = os.path.join(docs_dir, os.path.relpath(root, input_dir))
ensuredir(root_dir)
input_file = os.path.join(root, filename)
shutil.copy(input_file, root_dir)
argv = ['-W', '-b', 'html', src_dir, '_build/html']
if parallel:
argv.insert(0, '-j 4')
try:
os.chdir(docs_dir)
status = build_main(argv=argv)
finally:
os.chdir(start_dir)
> assert status == 0
E assert 2 == 0
sphinx_automodapi/tests/test_cases.py:106: AssertionError
----------------------------------------------------------------------------------- Captured stdout call ------------------------------------------------------------------------------------
Running Sphinx v6.1.3
----------------------------------------------------------------------------------- Captured stderr call ------------------------------------------------------------------------------------
Exception occurred:
File "/usr/lib/python3.8/site-packages/sphinx/deprecation.py", line 46, in __getattr__
warnings.warn(f"The alias '{self._modname}.{name}' is deprecated, "
sphinx.deprecation.RemovedInSphinx80Warning: The alias 'sphinx.util.progress_message' is deprecated, use 'sphinx.util.display.progress_message' instead. Check CHANGES for Sphinx API modifications.
The full traceback has been saved in /tmp/sphinx-err-vid8yac2.log, if you want to report the issue to the developers.
Please also report this if it was a user error, so that a better error message can be provided next time.
A bug report can be filed in the tracker at <https://github.com/sphinx-doc/sphinx/issues>. Thanks!
______________________________ test_run_full_case[/home/tkloczko/rpmbuild/BUILD/sphinx-automodapi-0.14.1/sphinx_automodapi/tests/cases/abstract_classes-True] _______________________________
tmpdir = local('/tmp/pytest-of-tkloczko/pytest-17/test_run_full_case__home_tkloc1')
case_dir = '/home/tkloczko/rpmbuild/BUILD/sphinx-automodapi-0.14.1/sphinx_automodapi/tests/cases/abstract_classes', parallel = True
@pytest.mark.parametrize(('case_dir', 'parallel'), product(CASES_DIRS, PARALLEL))
def test_run_full_case(tmpdir, case_dir, parallel):
input_dir = os.path.join(case_dir, 'input')
output_dir = os.path.join(case_dir, 'output')
docs_dir = tmpdir.mkdir('docs').strpath
conf = deepcopy(DEFAULT_CONF)
conf.update({'automodapi_toctreedirnm': 'api',
'automodapi_writereprocessed': True,
'automodsumm_writereprocessed': True})
if os.path.basename(case_dir) in ('mixed_toplevel',
'mixed_toplevel_all_objects',
'allowed_names'):
conf['extensions'].append('sphinx_automodapi.smart_resolver')
start_dir = os.path.abspath('.')
src_dir = 'src' if 'source_dir' in case_dir else '.'
ensuredir(os.path.join(docs_dir, src_dir))
write_conf(os.path.join(os.path.join(docs_dir, src_dir), 'conf.py'), conf)
for root, dirnames, filenames in os.walk(input_dir):
for filename in filenames:
root_dir = os.path.join(docs_dir, os.path.relpath(root, input_dir))
ensuredir(root_dir)
input_file = os.path.join(root, filename)
shutil.copy(input_file, root_dir)
argv = ['-W', '-b', 'html', src_dir, '_build/html']
if parallel:
argv.insert(0, '-j 4')
try:
os.chdir(docs_dir)
status = build_main(argv=argv)
finally:
os.chdir(start_dir)
> assert status == 0
E assert 2 == 0
sphinx_automodapi/tests/test_cases.py:106: AssertionError
----------------------------------------------------------------------------------- Captured stdout call ------------------------------------------------------------------------------------
Running Sphinx v6.1.3
----------------------------------------------------------------------------------- Captured stderr call ------------------------------------------------------------------------------------
Exception occurred:
File "/usr/lib/python3.8/site-packages/sphinx/deprecation.py", line 46, in __getattr__
warnings.warn(f"The alias '{self._modname}.{name}' is deprecated, "
sphinx.deprecation.RemovedInSphinx80Warning: The alias 'sphinx.util.progress_message' is deprecated, use 'sphinx.util.display.progress_message' instead. Check CHANGES for Sphinx API modifications.
The full traceback has been saved in /tmp/sphinx-err-uk24jqh6.log, if you want to report the issue to the developers.
Please also report this if it was a user error, so that a better error message can be provided next time.
A bug report can be filed in the tracker at <https://github.com/sphinx-doc/sphinx/issues>. Thanks!
_______________________________ test_run_full_case[/home/tkloczko/rpmbuild/BUILD/sphinx-automodapi-0.14.1/sphinx_automodapi/tests/cases/allowed_names-False] ________________________________
tmpdir = local('/tmp/pytest-of-tkloczko/pytest-17/test_run_full_case__home_tkloc2')
case_dir = '/home/tkloczko/rpmbuild/BUILD/sphinx-automodapi-0.14.1/sphinx_automodapi/tests/cases/allowed_names', parallel = False
@pytest.mark.parametrize(('case_dir', 'parallel'), product(CASES_DIRS, PARALLEL))
def test_run_full_case(tmpdir, case_dir, parallel):
input_dir = os.path.join(case_dir, 'input')
output_dir = os.path.join(case_dir, 'output')
docs_dir = tmpdir.mkdir('docs').strpath
conf = deepcopy(DEFAULT_CONF)
conf.update({'automodapi_toctreedirnm': 'api',
'automodapi_writereprocessed': True,
'automodsumm_writereprocessed': True})
if os.path.basename(case_dir) in ('mixed_toplevel',
'mixed_toplevel_all_objects',
'allowed_names'):
conf['extensions'].append('sphinx_automodapi.smart_resolver')
start_dir = os.path.abspath('.')
src_dir = 'src' if 'source_dir' in case_dir else '.'
ensuredir(os.path.join(docs_dir, src_dir))
write_conf(os.path.join(os.path.join(docs_dir, src_dir), 'conf.py'), conf)
for root, dirnames, filenames in os.walk(input_dir):
for filename in filenames:
root_dir = os.path.join(docs_dir, os.path.relpath(root, input_dir))
ensuredir(root_dir)
input_file = os.path.join(root, filename)
shutil.copy(input_file, root_dir)
argv = ['-W', '-b', 'html', src_dir, '_build/html']
if parallel:
argv.insert(0, '-j 4')
try:
os.chdir(docs_dir)
status = build_main(argv=argv)
finally:
os.chdir(start_dir)
> assert status == 0
E assert 2 == 0
sphinx_automodapi/tests/test_cases.py:106: AssertionError
----------------------------------------------------------------------------------- Captured stdout call ------------------------------------------------------------------------------------
Running Sphinx v6.1.3
----------------------------------------------------------------------------------- Captured stderr call ------------------------------------------------------------------------------------
Exception occurred:
File "/usr/lib/python3.8/site-packages/sphinx/deprecation.py", line 46, in __getattr__
warnings.warn(f"The alias '{self._modname}.{name}' is deprecated, "
sphinx.deprecation.RemovedInSphinx80Warning: The alias 'sphinx.util.progress_message' is deprecated, use 'sphinx.util.display.progress_message' instead. Check CHANGES for Sphinx API modifications.
The full traceback has been saved in /tmp/sphinx-err-yt9btgdc.log, if you want to report the issue to the developers.
Please also report this if it was a user error, so that a better error message can be provided next time.
A bug report can be filed in the tracker at <https://github.com/sphinx-doc/sphinx/issues>. Thanks!
________________________________ test_run_full_case[/home/tkloczko/rpmbuild/BUILD/sphinx-automodapi-0.14.1/sphinx_automodapi/tests/cases/allowed_names-True] ________________________________
tmpdir = local('/tmp/pytest-of-tkloczko/pytest-17/test_run_full_case__home_tkloc3')
case_dir = '/home/tkloczko/rpmbuild/BUILD/sphinx-automodapi-0.14.1/sphinx_automodapi/tests/cases/allowed_names', parallel = True
@pytest.mark.parametrize(('case_dir', 'parallel'), product(CASES_DIRS, PARALLEL))
def test_run_full_case(tmpdir, case_dir, parallel):
input_dir = os.path.join(case_dir, 'input')
output_dir = os.path.join(case_dir, 'output')
docs_dir = tmpdir.mkdir('docs').strpath
conf = deepcopy(DEFAULT_CONF)
conf.update({'automodapi_toctreedirnm': 'api',
'automodapi_writereprocessed': True,
'automodsumm_writereprocessed': True})
if os.path.basename(case_dir) in ('mixed_toplevel',
'mixed_toplevel_all_objects',
'allowed_names'):
conf['extensions'].append('sphinx_automodapi.smart_resolver')
start_dir = os.path.abspath('.')
src_dir = 'src' if 'source_dir' in case_dir else '.'
ensuredir(os.path.join(docs_dir, src_dir))
write_conf(os.path.join(os.path.join(docs_dir, src_dir), 'conf.py'), conf)
for root, dirnames, filenames in os.walk(input_dir):
for filename in filenames:
root_dir = os.path.join(docs_dir, os.path.relpath(root, input_dir))
ensuredir(root_dir)
input_file = os.path.join(root, filename)
shutil.copy(input_file, root_dir)
argv = ['-W', '-b', 'html', src_dir, '_build/html']
if parallel:
argv.insert(0, '-j 4')
try:
os.chdir(docs_dir)
status = build_main(argv=argv)
finally:
os.chdir(start_dir)
> assert status == 0
E assert 2 == 0
sphinx_automodapi/tests/test_cases.py:106: AssertionError
----------------------------------------------------------------------------------- Captured stdout call ------------------------------------------------------------------------------------
Running Sphinx v6.1.3
----------------------------------------------------------------------------------- Captured stderr call ------------------------------------------------------------------------------------
Exception occurred:
File "/usr/lib/python3.8/site-packages/sphinx/deprecation.py", line 46, in __getattr__
warnings.warn(f"The alias '{self._modname}.{name}' is deprecated, "
sphinx.deprecation.RemovedInSphinx80Warning: The alias 'sphinx.util.progress_message' is deprecated, use 'sphinx.util.display.progress_message' instead. Check CHANGES for Sphinx API modifications.
The full traceback has been saved in /tmp/sphinx-err-ez95422a.log, if you want to report the issue to the developers.
Please also report this if it was a user error, so that a better error message can be provided next time.
A bug report can be filed in the tracker at <https://github.com/sphinx-doc/sphinx/issues>. Thanks!
_____________________________ test_run_full_case[/home/tkloczko/rpmbuild/BUILD/sphinx-automodapi-0.14.1/sphinx_automodapi/tests/cases/classes_no_inherit-False] _____________________________
tmpdir = local('/tmp/pytest-of-tkloczko/pytest-17/test_run_full_case__home_tkloc4')
case_dir = '/home/tkloczko/rpmbuild/BUILD/sphinx-automodapi-0.14.1/sphinx_automodapi/tests/cases/classes_no_inherit', parallel = False
@pytest.mark.parametrize(('case_dir', 'parallel'), product(CASES_DIRS, PARALLEL))
def test_run_full_case(tmpdir, case_dir, parallel):
input_dir = os.path.join(case_dir, 'input')
output_dir = os.path.join(case_dir, 'output')
docs_dir = tmpdir.mkdir('docs').strpath
conf = deepcopy(DEFAULT_CONF)
conf.update({'automodapi_toctreedirnm': 'api',
'automodapi_writereprocessed': True,
'automodsumm_writereprocessed': True})
if os.path.basename(case_dir) in ('mixed_toplevel',
'mixed_toplevel_all_objects',
'allowed_names'):
conf['extensions'].append('sphinx_automodapi.smart_resolver')
start_dir = os.path.abspath('.')
src_dir = 'src' if 'source_dir' in case_dir else '.'
ensuredir(os.path.join(docs_dir, src_dir))
write_conf(os.path.join(os.path.join(docs_dir, src_dir), 'conf.py'), conf)
for root, dirnames, filenames in os.walk(input_dir):
for filename in filenames:
root_dir = os.path.join(docs_dir, os.path.relpath(root, input_dir))
ensuredir(root_dir)
input_file = os.path.join(root, filename)
shutil.copy(input_file, root_dir)
argv = ['-W', '-b', 'html', src_dir, '_build/html']
if parallel:
argv.insert(0, '-j 4')
try:
os.chdir(docs_dir)
status = build_main(argv=argv)
finally:
os.chdir(start_dir)
> assert status == 0
E assert 2 == 0
sphinx_automodapi/tests/test_cases.py:106: AssertionError
----------------------------------------------------------------------------------- Captured stdout call ------------------------------------------------------------------------------------
Running Sphinx v6.1.3
----------------------------------------------------------------------------------- Captured stderr call ------------------------------------------------------------------------------------
Exception occurred:
File "/usr/lib/python3.8/site-packages/sphinx/deprecation.py", line 46, in __getattr__
warnings.warn(f"The alias '{self._modname}.{name}' is deprecated, "
sphinx.deprecation.RemovedInSphinx80Warning: The alias 'sphinx.util.progress_message' is deprecated, use 'sphinx.util.display.progress_message' instead. Check CHANGES for Sphinx API modifications.
The full traceback has been saved in /tmp/sphinx-err-8i83fxbq.log, if you want to report the issue to the developers.
Please also report this if it was a user error, so that a better error message can be provided next time.
A bug report can be filed in the tracker at <https://github.com/sphinx-doc/sphinx/issues>. Thanks!
_____________________________ test_run_full_case[/home/tkloczko/rpmbuild/BUILD/sphinx-automodapi-0.14.1/sphinx_automodapi/tests/cases/classes_no_inherit-True] ______________________________
tmpdir = local('/tmp/pytest-of-tkloczko/pytest-17/test_run_full_case__home_tkloc5')
case_dir = '/home/tkloczko/rpmbuild/BUILD/sphinx-automodapi-0.14.1/sphinx_automodapi/tests/cases/classes_no_inherit', parallel = True
@pytest.mark.parametrize(('case_dir', 'parallel'), product(CASES_DIRS, PARALLEL))
def test_run_full_case(tmpdir, case_dir, parallel):
input_dir = os.path.join(case_dir, 'input')
output_dir = os.path.join(case_dir, 'output')
docs_dir = tmpdir.mkdir('docs').strpath
conf = deepcopy(DEFAULT_CONF)
conf.update({'automodapi_toctreedirnm': 'api',
'automodapi_writereprocessed': True,
'automodsumm_writereprocessed': True})
if os.path.basename(case_dir) in ('mixed_toplevel',
'mixed_toplevel_all_objects',
'allowed_names'):
conf['extensions'].append('sphinx_automodapi.smart_resolver')
start_dir = os.path.abspath('.')
src_dir = 'src' if 'source_dir' in case_dir else '.'
ensuredir(os.path.join(docs_dir, src_dir))
write_conf(os.path.join(os.path.join(docs_dir, src_dir), 'conf.py'), conf)
for root, dirnames, filenames in os.walk(input_dir):
for filename in filenames:
root_dir = os.path.join(docs_dir, os.path.relpath(root, input_dir))
ensuredir(root_dir)
input_file = os.path.join(root, filename)
shutil.copy(input_file, root_dir)
argv = ['-W', '-b', 'html', src_dir, '_build/html']
if parallel:
argv.insert(0, '-j 4')
try:
os.chdir(docs_dir)
status = build_main(argv=argv)
finally:
os.chdir(start_dir)
> assert status == 0
E assert 2 == 0
sphinx_automodapi/tests/test_cases.py:106: AssertionError
----------------------------------------------------------------------------------- Captured stdout call ------------------------------------------------------------------------------------
Running Sphinx v6.1.3
----------------------------------------------------------------------------------- Captured stderr call ------------------------------------------------------------------------------------
Exception occurred:
File "/usr/lib/python3.8/site-packages/sphinx/deprecation.py", line 46, in __getattr__
warnings.warn(f"The alias '{self._modname}.{name}' is deprecated, "
sphinx.deprecation.RemovedInSphinx80Warning: The alias 'sphinx.util.progress_message' is deprecated, use 'sphinx.util.display.progress_message' instead. Check CHANGES for Sphinx API modifications.
The full traceback has been saved in /tmp/sphinx-err-x8ydj7w4.log, if you want to report the issue to the developers.
Please also report this if it was a user error, so that a better error message can be provided next time.
A bug report can be filed in the tracker at <https://github.com/sphinx-doc/sphinx/issues>. Thanks!
____________________________ test_run_full_case[/home/tkloczko/rpmbuild/BUILD/sphinx-automodapi-0.14.1/sphinx_automodapi/tests/cases/classes_with_inherit-False] ____________________________
tmpdir = local('/tmp/pytest-of-tkloczko/pytest-17/test_run_full_case__home_tkloc6')
case_dir = '/home/tkloczko/rpmbuild/BUILD/sphinx-automodapi-0.14.1/sphinx_automodapi/tests/cases/classes_with_inherit', parallel = False
@pytest.mark.parametrize(('case_dir', 'parallel'), product(CASES_DIRS, PARALLEL))
def test_run_full_case(tmpdir, case_dir, parallel):
input_dir = os.path.join(case_dir, 'input')
output_dir = os.path.join(case_dir, 'output')
docs_dir = tmpdir.mkdir('docs').strpath
conf = deepcopy(DEFAULT_CONF)
conf.update({'automodapi_toctreedirnm': 'api',
'automodapi_writereprocessed': True,
'automodsumm_writereprocessed': True})
if os.path.basename(case_dir) in ('mixed_toplevel',
'mixed_toplevel_all_objects',
'allowed_names'):
conf['extensions'].append('sphinx_automodapi.smart_resolver')
start_dir = os.path.abspath('.')
src_dir = 'src' if 'source_dir' in case_dir else '.'
ensuredir(os.path.join(docs_dir, src_dir))
write_conf(os.path.join(os.path.join(docs_dir, src_dir), 'conf.py'), conf)
for root, dirnames, filenames in os.walk(input_dir):
for filename in filenames:
root_dir = os.path.join(docs_dir, os.path.relpath(root, input_dir))
ensuredir(root_dir)
input_file = os.path.join(root, filename)
shutil.copy(input_file, root_dir)
argv = ['-W', '-b', 'html', src_dir, '_build/html']
if parallel:
argv.insert(0, '-j 4')
try:
os.chdir(docs_dir)
status = build_main(argv=argv)
finally:
os.chdir(start_dir)
> assert status == 0
E assert 2 == 0
sphinx_automodapi/tests/test_cases.py:106: AssertionError
----------------------------------------------------------------------------------- Captured stdout call ------------------------------------------------------------------------------------
Running Sphinx v6.1.3
----------------------------------------------------------------------------------- Captured stderr call ------------------------------------------------------------------------------------
Exception occurred:
File "/usr/lib/python3.8/site-packages/sphinx/deprecation.py", line 46, in __getattr__
warnings.warn(f"The alias '{self._modname}.{name}' is deprecated, "
sphinx.deprecation.RemovedInSphinx80Warning: The alias 'sphinx.util.progress_message' is deprecated, use 'sphinx.util.display.progress_message' instead. Check CHANGES for Sphinx API modifications.
The full traceback has been saved in /tmp/sphinx-err-sgrzg6i6.log, if you want to report the issue to the developers.
Please also report this if it was a user error, so that a better error message can be provided next time.
A bug report can be filed in the tracker at <https://github.com/sphinx-doc/sphinx/issues>. Thanks!
____________________________ test_run_full_case[/home/tkloczko/rpmbuild/BUILD/sphinx-automodapi-0.14.1/sphinx_automodapi/tests/cases/classes_with_inherit-True] _____________________________
tmpdir = local('/tmp/pytest-of-tkloczko/pytest-17/test_run_full_case__home_tkloc7')
case_dir = '/home/tkloczko/rpmbuild/BUILD/sphinx-automodapi-0.14.1/sphinx_automodapi/tests/cases/classes_with_inherit', parallel = True
@pytest.mark.parametrize(('case_dir', 'parallel'), product(CASES_DIRS, PARALLEL))
def test_run_full_case(tmpdir, case_dir, parallel):
input_dir = os.path.join(case_dir, 'input')
output_dir = os.path.join(case_dir, 'output')
docs_dir = tmpdir.mkdir('docs').strpath
conf = deepcopy(DEFAULT_CONF)
conf.update({'automodapi_toctreedirnm': 'api',
'automodapi_writereprocessed': True,
'automodsumm_writereprocessed': True})
if os.path.basename(case_dir) in ('mixed_toplevel',
'mixed_toplevel_all_objects',
'allowed_names'):
conf['extensions'].append('sphinx_automodapi.smart_resolver')
start_dir = os.path.abspath('.')
src_dir = 'src' if 'source_dir' in case_dir else '.'
ensuredir(os.path.join(docs_dir, src_dir))
write_conf(os.path.join(os.path.join(docs_dir, src_dir), 'conf.py'), conf)
for root, dirnames, filenames in os.walk(input_dir):
for filename in filenames:
root_dir = os.path.join(docs_dir, os.path.relpath(root, input_dir))
ensuredir(root_dir)
input_file = os.path.join(root, filename)
shutil.copy(input_file, root_dir)
argv = ['-W', '-b', 'html', src_dir, '_build/html']
if parallel:
argv.insert(0, '-j 4')
try:
os.chdir(docs_dir)
status = build_main(argv=argv)
finally:
os.chdir(start_dir)
> assert status == 0
E assert 2 == 0
sphinx_automodapi/tests/test_cases.py:106: AssertionError
----------------------------------------------------------------------------------- Captured stdout call ------------------------------------------------------------------------------------
Running Sphinx v6.1.3
----------------------------------------------------------------------------------- Captured stderr call ------------------------------------------------------------------------------------
Exception occurred:
File "/usr/lib/python3.8/site-packages/sphinx/deprecation.py", line 46, in __getattr__
warnings.warn(f"The alias '{self._modname}.{name}' is deprecated, "
sphinx.deprecation.RemovedInSphinx80Warning: The alias 'sphinx.util.progress_message' is deprecated, use 'sphinx.util.display.progress_message' instead. Check CHANGES for Sphinx API modifications.
The full traceback has been saved in /tmp/sphinx-err-v13mukxj.log, if you want to report the issue to the developers.
Please also report this if it was a user error, so that a better error message can be provided next time.
A bug report can be filed in the tracker at <https://github.com/sphinx-doc/sphinx/issues>. Thanks!
_______________________________ test_run_full_case[/home/tkloczko/rpmbuild/BUILD/sphinx-automodapi-0.14.1/sphinx_automodapi/tests/cases/func_headings-False] ________________________________
tmpdir = local('/tmp/pytest-of-tkloczko/pytest-17/test_run_full_case__home_tkloc8')
case_dir = '/home/tkloczko/rpmbuild/BUILD/sphinx-automodapi-0.14.1/sphinx_automodapi/tests/cases/func_headings', parallel = False
@pytest.mark.parametrize(('case_dir', 'parallel'), product(CASES_DIRS, PARALLEL))
def test_run_full_case(tmpdir, case_dir, parallel):
input_dir = os.path.join(case_dir, 'input')
output_dir = os.path.join(case_dir, 'output')
docs_dir = tmpdir.mkdir('docs').strpath
conf = deepcopy(DEFAULT_CONF)
conf.update({'automodapi_toctreedirnm': 'api',
'automodapi_writereprocessed': True,
'automodsumm_writereprocessed': True})
if os.path.basename(case_dir) in ('mixed_toplevel',
'mixed_toplevel_all_objects',
'allowed_names'):
conf['extensions'].append('sphinx_automodapi.smart_resolver')
start_dir = os.path.abspath('.')
src_dir = 'src' if 'source_dir' in case_dir else '.'
ensuredir(os.path.join(docs_dir, src_dir))
write_conf(os.path.join(os.path.join(docs_dir, src_dir), 'conf.py'), conf)
for root, dirnames, filenames in os.walk(input_dir):
for filename in filenames:
root_dir = os.path.join(docs_dir, os.path.relpath(root, input_dir))
ensuredir(root_dir)
input_file = os.path.join(root, filename)
shutil.copy(input_file, root_dir)
argv = ['-W', '-b', 'html', src_dir, '_build/html']
if parallel:
argv.insert(0, '-j 4')
try:
os.chdir(docs_dir)
status = build_main(argv=argv)
finally:
os.chdir(start_dir)
> assert status == 0
E assert 2 == 0
sphinx_automodapi/tests/test_cases.py:106: AssertionError
----------------------------------------------------------------------------------- Captured stdout call ------------------------------------------------------------------------------------
Running Sphinx v6.1.3
----------------------------------------------------------------------------------- Captured stderr call ------------------------------------------------------------------------------------
Exception occurred:
File "/usr/lib/python3.8/site-packages/sphinx/deprecation.py", line 46, in __getattr__
warnings.warn(f"The alias '{self._modname}.{name}' is deprecated, "
sphinx.deprecation.RemovedInSphinx80Warning: The alias 'sphinx.util.progress_message' is deprecated, use 'sphinx.util.display.progress_message' instead. Check CHANGES for Sphinx API modifications.
The full traceback has been saved in /tmp/sphinx-err-4cd8yd50.log, if you want to report the issue to the developers.
Please also report this if it was a user error, so that a better error message can be provided next time.
A bug report can be filed in the tracker at <https://github.com/sphinx-doc/sphinx/issues>. Thanks!
________________________________ test_run_full_case[/home/tkloczko/rpmbuild/BUILD/sphinx-automodapi-0.14.1/sphinx_automodapi/tests/cases/func_headings-True] ________________________________
tmpdir = local('/tmp/pytest-of-tkloczko/pytest-17/test_run_full_case__home_tkloc9')
case_dir = '/home/tkloczko/rpmbuild/BUILD/sphinx-automodapi-0.14.1/sphinx_automodapi/tests/cases/func_headings', parallel = True
@pytest.mark.parametrize(('case_dir', 'parallel'), product(CASES_DIRS, PARALLEL))
def test_run_full_case(tmpdir, case_dir, parallel):
input_dir = os.path.join(case_dir, 'input')
output_dir = os.path.join(case_dir, 'output')
docs_dir = tmpdir.mkdir('docs').strpath
conf = deepcopy(DEFAULT_CONF)
conf.update({'automodapi_toctreedirnm': 'api',
'automodapi_writereprocessed': True,
'automodsumm_writereprocessed': True})
if os.path.basename(case_dir) in ('mixed_toplevel',
'mixed_toplevel_all_objects',
'allowed_names'):
conf['extensions'].append('sphinx_automodapi.smart_resolver')
start_dir = os.path.abspath('.')
src_dir = 'src' if 'source_dir' in case_dir else '.'
ensuredir(os.path.join(docs_dir, src_dir))
write_conf(os.path.join(os.path.join(docs_dir, src_dir), 'conf.py'), conf)
for root, dirnames, filenames in os.walk(input_dir):
for filename in filenames:
root_dir = os.path.join(docs_dir, os.path.relpath(root, input_dir))
ensuredir(root_dir)
input_file = os.path.join(root, filename)
shutil.copy(input_file, root_dir)
argv = ['-W', '-b', 'html', src_dir, '_build/html']
if parallel:
argv.insert(0, '-j 4')
try:
os.chdir(docs_dir)
status = build_main(argv=argv)
finally:
os.chdir(start_dir)
> assert status == 0
E assert 2 == 0
sphinx_automodapi/tests/test_cases.py:106: AssertionError
----------------------------------------------------------------------------------- Captured stdout call ------------------------------------------------------------------------------------
Running Sphinx v6.1.3
----------------------------------------------------------------------------------- Captured stderr call ------------------------------------------------------------------------------------
Exception occurred:
File "/usr/lib/python3.8/site-packages/sphinx/deprecation.py", line 46, in __getattr__
warnings.warn(f"The alias '{self._modname}.{name}' is deprecated, "
sphinx.deprecation.RemovedInSphinx80Warning: The alias 'sphinx.util.progress_message' is deprecated, use 'sphinx.util.display.progress_message' instead. Check CHANGES for Sphinx API modifications.
The full traceback has been saved in /tmp/sphinx-err-kl1ysj6f.log, if you want to report the issue to the developers.
Please also report this if it was a user error, so that a better error message can be provided next time.
A bug report can be filed in the tracker at <https://github.com/sphinx-doc/sphinx/issues>. Thanks!
_______________________________ test_run_full_case[/home/tkloczko/rpmbuild/BUILD/sphinx-automodapi-0.14.1/sphinx_automodapi/tests/cases/func_noheading-False] _______________________________
tmpdir = local('/tmp/pytest-of-tkloczko/pytest-17/test_run_full_case__home_tkloc10')
case_dir = '/home/tkloczko/rpmbuild/BUILD/sphinx-automodapi-0.14.1/sphinx_automodapi/tests/cases/func_noheading', parallel = False
@pytest.mark.parametrize(('case_dir', 'parallel'), product(CASES_DIRS, PARALLEL))
def test_run_full_case(tmpdir, case_dir, parallel):
input_dir = os.path.join(case_dir, 'input')
output_dir = os.path.join(case_dir, 'output')
docs_dir = tmpdir.mkdir('docs').strpath
conf = deepcopy(DEFAULT_CONF)
conf.update({'automodapi_toctreedirnm': 'api',
'automodapi_writereprocessed': True,
'automodsumm_writereprocessed': True})
if os.path.basename(case_dir) in ('mixed_toplevel',
'mixed_toplevel_all_objects',
'allowed_names'):
conf['extensions'].append('sphinx_automodapi.smart_resolver')
start_dir = os.path.abspath('.')
src_dir = 'src' if 'source_dir' in case_dir else '.'
ensuredir(os.path.join(docs_dir, src_dir))
write_conf(os.path.join(os.path.join(docs_dir, src_dir), 'conf.py'), conf)
for root, dirnames, filenames in os.walk(input_dir):
for filename in filenames:
root_dir = os.path.join(docs_dir, os.path.relpath(root, input_dir))
ensuredir(root_dir)
input_file = os.path.join(root, filename)
shutil.copy(input_file, root_dir)
argv = ['-W', '-b', 'html', src_dir, '_build/html']
if parallel:
argv.insert(0, '-j 4')
try:
os.chdir(docs_dir)
status = build_main(argv=argv)
finally:
os.chdir(start_dir)
> assert status == 0
E assert 2 == 0
sphinx_automodapi/tests/test_cases.py:106: AssertionError
----------------------------------------------------------------------------------- Captured stdout call ------------------------------------------------------------------------------------
Running Sphinx v6.1.3
----------------------------------------------------------------------------------- Captured stderr call ------------------------------------------------------------------------------------
Exception occurred:
File "/usr/lib/python3.8/site-packages/sphinx/deprecation.py", line 46, in __getattr__
warnings.warn(f"The alias '{self._modname}.{name}' is deprecated, "
sphinx.deprecation.RemovedInSphinx80Warning: The alias 'sphinx.util.progress_message' is deprecated, use 'sphinx.util.display.progress_message' instead. Check CHANGES for Sphinx API modifications.
The full traceback has been saved in /tmp/sphinx-err-y1skv7pw.log, if you want to report the issue to the developers.
Please also report this if it was a user error, so that a better error message can be provided next time.
A bug report can be filed in the tracker at <https://github.com/sphinx-doc/sphinx/issues>. Thanks!
_______________________________ test_run_full_case[/home/tkloczko/rpmbuild/BUILD/sphinx-automodapi-0.14.1/sphinx_automodapi/tests/cases/func_noheading-True] ________________________________
tmpdir = local('/tmp/pytest-of-tkloczko/pytest-17/test_run_full_case__home_tkloc11')
case_dir = '/home/tkloczko/rpmbuild/BUILD/sphinx-automodapi-0.14.1/sphinx_automodapi/tests/cases/func_noheading', parallel = True
@pytest.mark.parametrize(('case_dir', 'parallel'), product(CASES_DIRS, PARALLEL))
def test_run_full_case(tmpdir, case_dir, parallel):
input_dir = os.path.join(case_dir, 'input')
output_dir = os.path.join(case_dir, 'output')
docs_dir = tmpdir.mkdir('docs').strpath
conf = deepcopy(DEFAULT_CONF)
conf.update({'automodapi_toctreedirnm': 'api',
'automodapi_writereprocessed': True,
'automodsumm_writereprocessed': True})
if os.path.basename(case_dir) in ('mixed_toplevel',
'mixed_toplevel_all_objects',
'allowed_names'):
conf['extensions'].append('sphinx_automodapi.smart_resolver')
start_dir = os.path.abspath('.')
src_dir = 'src' if 'source_dir' in case_dir else '.'
ensuredir(os.path.join(docs_dir, src_dir))
write_conf(os.path.join(os.path.join(docs_dir, src_dir), 'conf.py'), conf)
for root, dirnames, filenames in os.walk(input_dir):
for filename in filenames:
root_dir = os.path.join(docs_dir, os.path.relpath(root, input_dir))
ensuredir(root_dir)
input_file = os.path.join(root, filename)
shutil.copy(input_file, root_dir)
argv = ['-W', '-b', 'html', src_dir, '_build/html']
if parallel:
argv.insert(0, '-j 4')
try:
os.chdir(docs_dir)
status = build_main(argv=argv)
finally:
os.chdir(start_dir)
> assert status == 0
E assert 2 == 0
sphinx_automodapi/tests/test_cases.py:106: AssertionError
----------------------------------------------------------------------------------- Captured stdout call ------------------------------------------------------------------------------------
Running Sphinx v6.1.3
----------------------------------------------------------------------------------- Captured stderr call ------------------------------------------------------------------------------------
Exception occurred:
File "/usr/lib/python3.8/site-packages/sphinx/deprecation.py", line 46, in __getattr__
warnings.warn(f"The alias '{self._modname}.{name}' is deprecated, "
sphinx.deprecation.RemovedInSphinx80Warning: The alias 'sphinx.util.progress_message' is deprecated, use 'sphinx.util.display.progress_message' instead. Check CHANGES for Sphinx API modifications.
The full traceback has been saved in /tmp/sphinx-err-4b5tlo6f.log, if you want to report the issue to the developers.
Please also report this if it was a user error, so that a better error message can be provided next time.
A bug report can be filed in the tracker at <https://github.com/sphinx-doc/sphinx/issues>. Thanks!
____________________________ test_run_full_case[/home/tkloczko/rpmbuild/BUILD/sphinx-automodapi-0.14.1/sphinx_automodapi/tests/cases/func_nomaindocstring-False] ____________________________
tmpdir = local('/tmp/pytest-of-tkloczko/pytest-17/test_run_full_case__home_tkloc12')
case_dir = '/home/tkloczko/rpmbuild/BUILD/sphinx-automodapi-0.14.1/sphinx_automodapi/tests/cases/func_nomaindocstring', parallel = False
@pytest.mark.parametrize(('case_dir', 'parallel'), product(CASES_DIRS, PARALLEL))
def test_run_full_case(tmpdir, case_dir, parallel):
input_dir = os.path.join(case_dir, 'input')
output_dir = os.path.join(case_dir, 'output')
docs_dir = tmpdir.mkdir('docs').strpath
conf = deepcopy(DEFAULT_CONF)
conf.update({'automodapi_toctreedirnm': 'api',
'automodapi_writereprocessed': True,
'automodsumm_writereprocessed': True})
if os.path.basename(case_dir) in ('mixed_toplevel',
'mixed_toplevel_all_objects',
'allowed_names'):
conf['extensions'].append('sphinx_automodapi.smart_resolver')
start_dir = os.path.abspath('.')
src_dir = 'src' if 'source_dir' in case_dir else '.'
ensuredir(os.path.join(docs_dir, src_dir))
write_conf(os.path.join(os.path.join(docs_dir, src_dir), 'conf.py'), conf)
for root, dirnames, filenames in os.walk(input_dir):
for filename in filenames:
root_dir = os.path.join(docs_dir, os.path.relpath(root, input_dir))
ensuredir(root_dir)
input_file = os.path.join(root, filename)
shutil.copy(input_file, root_dir)
argv = ['-W', '-b', 'html', src_dir, '_build/html']
if parallel:
argv.insert(0, '-j 4')
try:
os.chdir(docs_dir)
status = build_main(argv=argv)
finally:
os.chdir(start_dir)
> assert status == 0
E assert 2 == 0
sphinx_automodapi/tests/test_cases.py:106: AssertionError
----------------------------------------------------------------------------------- Captured stdout call ------------------------------------------------------------------------------------
Running Sphinx v6.1.3
----------------------------------------------------------------------------------- Captured stderr call ------------------------------------------------------------------------------------
Exception occurred:
File "/usr/lib/python3.8/site-packages/sphinx/deprecation.py", line 46, in __getattr__
warnings.warn(f"The alias '{self._modname}.{name}' is deprecated, "
sphinx.deprecation.RemovedInSphinx80Warning: The alias 'sphinx.util.progress_message' is deprecated, use 'sphinx.util.display.progress_message' instead. Check CHANGES for Sphinx API modifications.
The full traceback has been saved in /tmp/sphinx-err-el_u6gq5.log, if you want to report the issue to the developers.
Please also report this if it was a user error, so that a better error message can be provided next time.
A bug report can be filed in the tracker at <https://github.com/sphinx-doc/sphinx/issues>. Thanks!
____________________________ test_run_full_case[/home/tkloczko/rpmbuild/BUILD/sphinx-automodapi-0.14.1/sphinx_automodapi/tests/cases/func_nomaindocstring-True] _____________________________
tmpdir = local('/tmp/pytest-of-tkloczko/pytest-17/test_run_full_case__home_tkloc13')
case_dir = '/home/tkloczko/rpmbuild/BUILD/sphinx-automodapi-0.14.1/sphinx_automodapi/tests/cases/func_nomaindocstring', parallel = True
@pytest.mark.parametrize(('case_dir', 'parallel'), product(CASES_DIRS, PARALLEL))
def test_run_full_case(tmpdir, case_dir, parallel):
input_dir = os.path.join(case_dir, 'input')
output_dir = os.path.join(case_dir, 'output')
docs_dir = tmpdir.mkdir('docs').strpath
conf = deepcopy(DEFAULT_CONF)
conf.update({'automodapi_toctreedirnm': 'api',
'automodapi_writereprocessed': True,
'automodsumm_writereprocessed': True})
if os.path.basename(case_dir) in ('mixed_toplevel',
'mixed_toplevel_all_objects',
'allowed_names'):
conf['extensions'].append('sphinx_automodapi.smart_resolver')
start_dir = os.path.abspath('.')
src_dir = 'src' if 'source_dir' in case_dir else '.'
ensuredir(os.path.join(docs_dir, src_dir))
write_conf(os.path.join(os.path.join(docs_dir, src_dir), 'conf.py'), conf)
for root, dirnames, filenames in os.walk(input_dir):
for filename in filenames:
root_dir = os.path.join(docs_dir, os.path.relpath(root, input_dir))
ensuredir(root_dir)
input_file = os.path.join(root, filename)
shutil.copy(input_file, root_dir)
argv = ['-W', '-b', 'html', src_dir, '_build/html']
if parallel:
argv.insert(0, '-j 4')
try:
os.chdir(docs_dir)
status = build_main(argv=argv)
finally:
os.chdir(start_dir)
> assert status == 0
E assert 2 == 0
sphinx_automodapi/tests/test_cases.py:106: AssertionError
----------------------------------------------------------------------------------- Captured stdout call ------------------------------------------------------------------------------------
Running Sphinx v6.1.3
----------------------------------------------------------------------------------- Captured stderr call ------------------------------------------------------------------------------------
Exception occurred:
File "/usr/lib/python3.8/site-packages/sphinx/deprecation.py", line 46, in __getattr__
warnings.warn(f"The alias '{self._modname}.{name}' is deprecated, "
sphinx.deprecation.RemovedInSphinx80Warning: The alias 'sphinx.util.progress_message' is deprecated, use 'sphinx.util.display.progress_message' instead. Check CHANGES for Sphinx API modifications.
The full traceback has been saved in /tmp/sphinx-err-v0zwhcqr.log, if you want to report the issue to the developers.
Please also report this if it was a user error, so that a better error message can be provided next time.
A bug report can be filed in the tracker at <https://github.com/sphinx-doc/sphinx/issues>. Thanks!
________________________________ test_run_full_case[/home/tkloczko/rpmbuild/BUILD/sphinx-automodapi-0.14.1/sphinx_automodapi/tests/cases/func_simple-False] _________________________________
tmpdir = local('/tmp/pytest-of-tkloczko/pytest-17/test_run_full_case__home_tkloc14')
case_dir = '/home/tkloczko/rpmbuild/BUILD/sphinx-automodapi-0.14.1/sphinx_automodapi/tests/cases/func_simple', parallel = False
@pytest.mark.parametrize(('case_dir', 'parallel'), product(CASES_DIRS, PARALLEL))
def test_run_full_case(tmpdir, case_dir, parallel):
input_dir = os.path.join(case_dir, 'input')
output_dir = os.path.join(case_dir, 'output')
docs_dir = tmpdir.mkdir('docs').strpath
conf = deepcopy(DEFAULT_CONF)
conf.update({'automodapi_toctreedirnm': 'api',
'automodapi_writereprocessed': True,
'automodsumm_writereprocessed': True})
if os.path.basename(case_dir) in ('mixed_toplevel',
'mixed_toplevel_all_objects',
'allowed_names'):
conf['extensions'].append('sphinx_automodapi.smart_resolver')
start_dir = os.path.abspath('.')
src_dir = 'src' if 'source_dir' in case_dir else '.'
ensuredir(os.path.join(docs_dir, src_dir))
write_conf(os.path.join(os.path.join(docs_dir, src_dir), 'conf.py'), conf)
for root, dirnames, filenames in os.walk(input_dir):
for filename in filenames:
root_dir = os.path.join(docs_dir, os.path.relpath(root, input_dir))
ensuredir(root_dir)
input_file = os.path.join(root, filename)
shutil.copy(input_file, root_dir)
argv = ['-W', '-b', 'html', src_dir, '_build/html']
if parallel:
argv.insert(0, '-j 4')
try:
os.chdir(docs_dir)
status = build_main(argv=argv)
finally:
os.chdir(start_dir)
> assert status == 0
E assert 2 == 0
sphinx_automodapi/tests/test_cases.py:106: AssertionError
----------------------------------------------------------------------------------- Captured stdout call ------------------------------------------------------------------------------------
Running Sphinx v6.1.3
----------------------------------------------------------------------------------- Captured stderr call ------------------------------------------------------------------------------------
Exception occurred:
File "/usr/lib/python3.8/site-packages/sphinx/deprecation.py", line 46, in __getattr__
warnings.warn(f"The alias '{self._modname}.{name}' is deprecated, "
sphinx.deprecation.RemovedInSphinx80Warning: The alias 'sphinx.util.progress_message' is deprecated, use 'sphinx.util.display.progress_message' instead. Check CHANGES for Sphinx API modifications.
The full traceback has been saved in /tmp/sphinx-err-uzf9s3zm.log, if you want to report the issue to the developers.
Please also report this if it was a user error, so that a better error message can be provided next time.
A bug report can be filed in the tracker at <https://github.com/sphinx-doc/sphinx/issues>. Thanks!
_________________________________ test_run_full_case[/home/tkloczko/rpmbuild/BUILD/sphinx-automodapi-0.14.1/sphinx_automodapi/tests/cases/func_simple-True] _________________________________
tmpdir = local('/tmp/pytest-of-tkloczko/pytest-17/test_run_full_case__home_tkloc15')
case_dir = '/home/tkloczko/rpmbuild/BUILD/sphinx-automodapi-0.14.1/sphinx_automodapi/tests/cases/func_simple', parallel = True
@pytest.mark.parametrize(('case_dir', 'parallel'), product(CASES_DIRS, PARALLEL))
def test_run_full_case(tmpdir, case_dir, parallel):
input_dir = os.path.join(case_dir, 'input')
output_dir = os.path.join(case_dir, 'output')
docs_dir = tmpdir.mkdir('docs').strpath
conf = deepcopy(DEFAULT_CONF)
conf.update({'automodapi_toctreedirnm': 'api',
'automodapi_writereprocessed': True,
'automodsumm_writereprocessed': True})
if os.path.basename(case_dir) in ('mixed_toplevel',
'mixed_toplevel_all_objects',
'allowed_names'):
conf['extensions'].append('sphinx_automodapi.smart_resolver')
start_dir = os.path.abspath('.')
src_dir = 'src' if 'source_dir' in case_dir else '.'
ensuredir(os.path.join(docs_dir, src_dir))
write_conf(os.path.join(os.path.join(docs_dir, src_dir), 'conf.py'), conf)
for root, dirnames, filenames in os.walk(input_dir):
for filename in filenames:
root_dir = os.path.join(docs_dir, os.path.relpath(root, input_dir))
ensuredir(root_dir)
input_file = os.path.join(root, filename)
shutil.copy(input_file, root_dir)
argv = ['-W', '-b', 'html', src_dir, '_build/html']
if parallel:
argv.insert(0, '-j 4')
try:
os.chdir(docs_dir)
status = build_main(argv=argv)
finally:
os.chdir(start_dir)
> assert status == 0
E assert 2 == 0
sphinx_automodapi/tests/test_cases.py:106: AssertionError
----------------------------------------------------------------------------------- Captured stdout call ------------------------------------------------------------------------------------
Running Sphinx v6.1.3
----------------------------------------------------------------------------------- Captured stderr call ------------------------------------------------------------------------------------
Exception occurred:
File "/usr/lib/python3.8/site-packages/sphinx/deprecation.py", line 46, in __getattr__
warnings.warn(f"The alias '{self._modname}.{name}' is deprecated, "
sphinx.deprecation.RemovedInSphinx80Warning: The alias 'sphinx.util.progress_message' is deprecated, use 'sphinx.util.display.progress_message' instead. Check CHANGES for Sphinx API modifications.
The full traceback has been saved in /tmp/sphinx-err-otjof0xa.log, if you want to report the issue to the developers.
Please also report this if it was a user error, so that a better error message can be provided next time.
A bug report can be filed in the tracker at <https://github.com/sphinx-doc/sphinx/issues>. Thanks!
_____________________________ test_run_full_case[/home/tkloczko/rpmbuild/BUILD/sphinx-automodapi-0.14.1/sphinx_automodapi/tests/cases/inherited_members-False] ______________________________
tmpdir = local('/tmp/pytest-of-tkloczko/pytest-17/test_run_full_case__home_tkloc16')
case_dir = '/home/tkloczko/rpmbuild/BUILD/sphinx-automodapi-0.14.1/sphinx_automodapi/tests/cases/inherited_members', parallel = False
@pytest.mark.parametrize(('case_dir', 'parallel'), product(CASES_DIRS, PARALLEL))
def test_run_full_case(tmpdir, case_dir, parallel):
input_dir = os.path.join(case_dir, 'input')
output_dir = os.path.join(case_dir, 'output')
docs_dir = tmpdir.mkdir('docs').strpath
conf = deepcopy(DEFAULT_CONF)
conf.update({'automodapi_toctreedirnm': 'api',
'automodapi_writereprocessed': True,
'automodsumm_writereprocessed': True})
if os.path.basename(case_dir) in ('mixed_toplevel',
'mixed_toplevel_all_objects',
'allowed_names'):
conf['extensions'].append('sphinx_automodapi.smart_resolver')
start_dir = os.path.abspath('.')
src_dir = 'src' if 'source_dir' in case_dir else '.'
ensuredir(os.path.join(docs_dir, src_dir))
write_conf(os.path.join(os.path.join(docs_dir, src_dir), 'conf.py'), conf)
for root, dirnames, filenames in os.walk(input_dir):
for filename in filenames:
root_dir = os.path.join(docs_dir, os.path.relpath(root, input_dir))
ensuredir(root_dir)
input_file = os.path.join(root, filename)
shutil.copy(input_file, root_dir)
argv = ['-W', '-b', 'html', src_dir, '_build/html']
if parallel:
argv.insert(0, '-j 4')
try:
os.chdir(docs_dir)
status = build_main(argv=argv)
finally:
os.chdir(start_dir)
> assert status == 0
E assert 2 == 0
sphinx_automodapi/tests/test_cases.py:106: AssertionError
----------------------------------------------------------------------------------- Captured stdout call ------------------------------------------------------------------------------------
Running Sphinx v6.1.3
----------------------------------------------------------------------------------- Captured stderr call ------------------------------------------------------------------------------------
Exception occurred:
File "/usr/lib/python3.8/site-packages/sphinx/deprecation.py", line 46, in __getattr__
warnings.warn(f"The alias '{self._modname}.{name}' is deprecated, "
sphinx.deprecation.RemovedInSphinx80Warning: The alias 'sphinx.util.progress_message' is deprecated, use 'sphinx.util.display.progress_message' instead. Check CHANGES for Sphinx API modifications.
The full traceback has been saved in /tmp/sphinx-err-oyd35c5h.log, if you want to report the issue to the developers.
Please also report this if it was a user error, so that a better error message can be provided next time.
A bug report can be filed in the tracker at <https://github.com/sphinx-doc/sphinx/issues>. Thanks!
______________________________ test_run_full_case[/home/tkloczko/rpmbuild/BUILD/sphinx-automodapi-0.14.1/sphinx_automodapi/tests/cases/inherited_members-True] ______________________________
tmpdir = local('/tmp/pytest-of-tkloczko/pytest-17/test_run_full_case__home_tkloc17')
case_dir = '/home/tkloczko/rpmbuild/BUILD/sphinx-automodapi-0.14.1/sphinx_automodapi/tests/cases/inherited_members', parallel = True
@pytest.mark.parametrize(('case_dir', 'parallel'), product(CASES_DIRS, PARALLEL))
def test_run_full_case(tmpdir, case_dir, parallel):
input_dir = os.path.join(case_dir, 'input')
output_dir = os.path.join(case_dir, 'output')
docs_dir = tmpdir.mkdir('docs').strpath
conf = deepcopy(DEFAULT_CONF)
conf.update({'automodapi_toctreedirnm': 'api',
'automodapi_writereprocessed': True,
'automodsumm_writereprocessed': True})
if os.path.basename(case_dir) in ('mixed_toplevel',
'mixed_toplevel_all_objects',
'allowed_names'):
conf['extensions'].append('sphinx_automodapi.smart_resolver')
start_dir = os.path.abspath('.')
src_dir = 'src' if 'source_dir' in case_dir else '.'
ensuredir(os.path.join(docs_dir, src_dir))
write_conf(os.path.join(os.path.join(docs_dir, src_dir), 'conf.py'), conf)
for root, dirnames, filenames in os.walk(input_dir):
for filename in filenames:
root_dir = os.path.join(docs_dir, os.path.relpath(root, input_dir))
ensuredir(root_dir)
input_file = os.path.join(root, filename)
shutil.copy(input_file, root_dir)
argv = ['-W', '-b', 'html', src_dir, '_build/html']
if parallel:
argv.insert(0, '-j 4')
try:
os.chdir(docs_dir)
status = build_main(argv=argv)
finally:
os.chdir(start_dir)
> assert status == 0
E assert 2 == 0
sphinx_automodapi/tests/test_cases.py:106: AssertionError
----------------------------------------------------------------------------------- Captured stdout call ------------------------------------------------------------------------------------
Running Sphinx v6.1.3
----------------------------------------------------------------------------------- Captured stderr call ------------------------------------------------------------------------------------
Exception occurred:
File "/usr/lib/python3.8/site-packages/sphinx/deprecation.py", line 46, in __getattr__
warnings.warn(f"The alias '{self._modname}.{name}' is deprecated, "
sphinx.deprecation.RemovedInSphinx80Warning: The alias 'sphinx.util.progress_message' is deprecated, use 'sphinx.util.display.progress_message' instead. Check CHANGES for Sphinx API modifications.
The full traceback has been saved in /tmp/sphinx-err-9r4m0_d0.log, if you want to report the issue to the developers.
Please also report this if it was a user error, so that a better error message can be provided next time.
A bug report can be filed in the tracker at <https://github.com/sphinx-doc/sphinx/issues>. Thanks!
_______________________________ test_run_full_case[/home/tkloczko/rpmbuild/BUILD/sphinx-automodapi-0.14.1/sphinx_automodapi/tests/cases/mixed_toplevel-False] _______________________________
tmpdir = local('/tmp/pytest-of-tkloczko/pytest-17/test_run_full_case__home_tkloc18')
case_dir = '/home/tkloczko/rpmbuild/BUILD/sphinx-automodapi-0.14.1/sphinx_automodapi/tests/cases/mixed_toplevel', parallel = False
@pytest.mark.parametrize(('case_dir', 'parallel'), product(CASES_DIRS, PARALLEL))
def test_run_full_case(tmpdir, case_dir, parallel):
input_dir = os.path.join(case_dir, 'input')
output_dir = os.path.join(case_dir, 'output')
docs_dir = tmpdir.mkdir('docs').strpath
conf = deepcopy(DEFAULT_CONF)
conf.update({'automodapi_toctreedirnm': 'api',
'automodapi_writereprocessed': True,
'automodsumm_writereprocessed': True})
if os.path.basename(case_dir) in ('mixed_toplevel',
'mixed_toplevel_all_objects',
'allowed_names'):
conf['extensions'].append('sphinx_automodapi.smart_resolver')
start_dir = os.path.abspath('.')
src_dir = 'src' if 'source_dir' in case_dir else '.'
ensuredir(os.path.join(docs_dir, src_dir))
write_conf(os.path.join(os.path.join(docs_dir, src_dir), 'conf.py'), conf)
for root, dirnames, filenames in os.walk(input_dir):
for filename in filenames:
root_dir = os.path.join(docs_dir, os.path.relpath(root, input_dir))
ensuredir(root_dir)
input_file = os.path.join(root, filename)
shutil.copy(input_file, root_dir)
argv = ['-W', '-b', 'html', src_dir, '_build/html']
if parallel:
argv.insert(0, '-j 4')
try:
os.chdir(docs_dir)
status = build_main(argv=argv)
finally:
os.chdir(start_dir)
> assert status == 0
E assert 2 == 0
sphinx_automodapi/tests/test_cases.py:106: AssertionError
----------------------------------------------------------------------------------- Captured stdout call ------------------------------------------------------------------------------------
Running Sphinx v6.1.3
----------------------------------------------------------------------------------- Captured stderr call ------------------------------------------------------------------------------------
Exception occurred:
File "/usr/lib/python3.8/site-packages/sphinx/deprecation.py", line 46, in __getattr__
warnings.warn(f"The alias '{self._modname}.{name}' is deprecated, "
sphinx.deprecation.RemovedInSphinx80Warning: The alias 'sphinx.util.progress_message' is deprecated, use 'sphinx.util.display.progress_message' instead. Check CHANGES for Sphinx API modifications.
The full traceback has been saved in /tmp/sphinx-err-on38gc3y.log, if you want to report the issue to the developers.
Please also report this if it was a user error, so that a better error message can be provided next time.
A bug report can be filed in the tracker at <https://github.com/sphinx-doc/sphinx/issues>. Thanks!
_______________________________ test_run_full_case[/home/tkloczko/rpmbuild/BUILD/sphinx-automodapi-0.14.1/sphinx_automodapi/tests/cases/mixed_toplevel-True] ________________________________
tmpdir = local('/tmp/pytest-of-tkloczko/pytest-17/test_run_full_case__home_tkloc19')
case_dir = '/home/tkloczko/rpmbuild/BUILD/sphinx-automodapi-0.14.1/sphinx_automodapi/tests/cases/mixed_toplevel', parallel = True
@pytest.mark.parametrize(('case_dir', 'parallel'), product(CASES_DIRS, PARALLEL))
def test_run_full_case(tmpdir, case_dir, parallel):
input_dir = os.path.join(case_dir, 'input')
output_dir = os.path.join(case_dir, 'output')
docs_dir = tmpdir.mkdir('docs').strpath
conf = deepcopy(DEFAULT_CONF)
conf.update({'automodapi_toctreedirnm': 'api',
'automodapi_writereprocessed': True,
'automodsumm_writereprocessed': True})
if os.path.basename(case_dir) in ('mixed_toplevel',
'mixed_toplevel_all_objects',
'allowed_names'):
conf['extensions'].append('sphinx_automodapi.smart_resolver')
start_dir = os.path.abspath('.')
src_dir = 'src' if 'source_dir' in case_dir else '.'
ensuredir(os.path.join(docs_dir, src_dir))
write_conf(os.path.join(os.path.join(docs_dir, src_dir), 'conf.py'), conf)
for root, dirnames, filenames in os.walk(input_dir):
for filename in filenames:
root_dir = os.path.join(docs_dir, os.path.relpath(root, input_dir))
ensuredir(root_dir)
input_file = os.path.join(root, filename)
shutil.copy(input_file, root_dir)
argv = ['-W', '-b', 'html', src_dir, '_build/html']
if parallel:
argv.insert(0, '-j 4')
try:
os.chdir(docs_dir)
status = build_main(argv=argv)
finally:
os.chdir(start_dir)
> assert status == 0
E assert 2 == 0
sphinx_automodapi/tests/test_cases.py:106: AssertionError
----------------------------------------------------------------------------------- Captured stdout call ------------------------------------------------------------------------------------
Running Sphinx v6.1.3
----------------------------------------------------------------------------------- Captured stderr call ------------------------------------------------------------------------------------
Exception occurred:
File "/usr/lib/python3.8/site-packages/sphinx/deprecation.py", line 46, in __getattr__
warnings.warn(f"The alias '{self._modname}.{name}' is deprecated, "
sphinx.deprecation.RemovedInSphinx80Warning: The alias 'sphinx.util.progress_message' is deprecated, use 'sphinx.util.display.progress_message' instead. Check CHANGES for Sphinx API modifications.
The full traceback has been saved in /tmp/sphinx-err-vg1n0h2c.log, if you want to report the issue to the developers.
Please also report this if it was a user error, so that a better error message can be provided next time.
A bug report can be filed in the tracker at <https://github.com/sphinx-doc/sphinx/issues>. Thanks!
_________________________ test_run_full_case[/home/tkloczko/rpmbuild/BUILD/sphinx-automodapi-0.14.1/sphinx_automodapi/tests/cases/mixed_toplevel_all_objects-False] _________________________
tmpdir = local('/tmp/pytest-of-tkloczko/pytest-17/test_run_full_case__home_tkloc20')
case_dir = '/home/tkloczko/rpmbuild/BUILD/sphinx-automodapi-0.14.1/sphinx_automodapi/tests/cases/mixed_toplevel_all_objects', parallel = False
@pytest.mark.parametrize(('case_dir', 'parallel'), product(CASES_DIRS, PARALLEL))
def test_run_full_case(tmpdir, case_dir, parallel):
input_dir = os.path.join(case_dir, 'input')
output_dir = os.path.join(case_dir, 'output')
docs_dir = tmpdir.mkdir('docs').strpath
conf = deepcopy(DEFAULT_CONF)
conf.update({'automodapi_toctreedirnm': 'api',
'automodapi_writereprocessed': True,
'automodsumm_writereprocessed': True})
if os.path.basename(case_dir) in ('mixed_toplevel',
'mixed_toplevel_all_objects',
'allowed_names'):
conf['extensions'].append('sphinx_automodapi.smart_resolver')
start_dir = os.path.abspath('.')
src_dir = 'src' if 'source_dir' in case_dir else '.'
ensuredir(os.path.join(docs_dir, src_dir))
write_conf(os.path.join(os.path.join(docs_dir, src_dir), 'conf.py'), conf)
for root, dirnames, filenames in os.walk(input_dir):
for filename in filenames:
root_dir = os.path.join(docs_dir, os.path.relpath(root, input_dir))
ensuredir(root_dir)
input_file = os.path.join(root, filename)
shutil.copy(input_file, root_dir)
argv = ['-W', '-b', 'html', src_dir, '_build/html']
if parallel:
argv.insert(0, '-j 4')
try:
os.chdir(docs_dir)
status = build_main(argv=argv)
finally:
os.chdir(start_dir)
> assert status == 0
E assert 2 == 0
sphinx_automodapi/tests/test_cases.py:106: AssertionError
----------------------------------------------------------------------------------- Captured stdout call ------------------------------------------------------------------------------------
Running Sphinx v6.1.3
----------------------------------------------------------------------------------- Captured stderr call ------------------------------------------------------------------------------------
Exception occurred:
File "/usr/lib/python3.8/site-packages/sphinx/deprecation.py", line 46, in __getattr__
warnings.warn(f"The alias '{self._modname}.{name}' is deprecated, "
sphinx.deprecation.RemovedInSphinx80Warning: The alias 'sphinx.util.progress_message' is deprecated, use 'sphinx.util.display.progress_message' instead. Check CHANGES for Sphinx API modifications.
The full traceback has been saved in /tmp/sphinx-err-4yihz9_j.log, if you want to report the issue to the developers.
Please also report this if it was a user error, so that a better error message can be provided next time.
A bug report can be filed in the tracker at <https://github.com/sphinx-doc/sphinx/issues>. Thanks!
_________________________ test_run_full_case[/home/tkloczko/rpmbuild/BUILD/sphinx-automodapi-0.14.1/sphinx_automodapi/tests/cases/mixed_toplevel_all_objects-True] __________________________
tmpdir = local('/tmp/pytest-of-tkloczko/pytest-17/test_run_full_case__home_tkloc21')
case_dir = '/home/tkloczko/rpmbuild/BUILD/sphinx-automodapi-0.14.1/sphinx_automodapi/tests/cases/mixed_toplevel_all_objects', parallel = True
@pytest.mark.parametrize(('case_dir', 'parallel'), product(CASES_DIRS, PARALLEL))
def test_run_full_case(tmpdir, case_dir, parallel):
input_dir = os.path.join(case_dir, 'input')
output_dir = os.path.join(case_dir, 'output')
docs_dir = tmpdir.mkdir('docs').strpath
conf = deepcopy(DEFAULT_CONF)
conf.update({'automodapi_toctreedirnm': 'api',
'automodapi_writereprocessed': True,
'automodsumm_writereprocessed': True})
if os.path.basename(case_dir) in ('mixed_toplevel',
'mixed_toplevel_all_objects',
'allowed_names'):
conf['extensions'].append('sphinx_automodapi.smart_resolver')
start_dir = os.path.abspath('.')
src_dir = 'src' if 'source_dir' in case_dir else '.'
ensuredir(os.path.join(docs_dir, src_dir))
write_conf(os.path.join(os.path.join(docs_dir, src_dir), 'conf.py'), conf)
for root, dirnames, filenames in os.walk(input_dir):
for filename in filenames:
root_dir = os.path.join(docs_dir, os.path.relpath(root, input_dir))
ensuredir(root_dir)
input_file = os.path.join(root, filename)
shutil.copy(input_file, root_dir)
argv = ['-W', '-b', 'html', src_dir, '_build/html']
if parallel:
argv.insert(0, '-j 4')
try:
os.chdir(docs_dir)
status = build_main(argv=argv)
finally:
os.chdir(start_dir)
> assert status == 0
E assert 2 == 0
sphinx_automodapi/tests/test_cases.py:106: AssertionError
----------------------------------------------------------------------------------- Captured stdout call ------------------------------------------------------------------------------------
Running Sphinx v6.1.3
----------------------------------------------------------------------------------- Captured stderr call ------------------------------------------------------------------------------------
Exception occurred:
File "/usr/lib/python3.8/site-packages/sphinx/deprecation.py", line 46, in __getattr__
warnings.warn(f"The alias '{self._modname}.{name}' is deprecated, "
sphinx.deprecation.RemovedInSphinx80Warning: The alias 'sphinx.util.progress_message' is deprecated, use 'sphinx.util.display.progress_message' instead. Check CHANGES for Sphinx API modifications.
The full traceback has been saved in /tmp/sphinx-err-u290plqs.log, if you want to report the issue to the developers.
Please also report this if it was a user error, so that a better error message can be provided next time.
A bug report can be filed in the tracker at <https://github.com/sphinx-doc/sphinx/issues>. Thanks!
__________________________ test_run_full_case[/home/tkloczko/rpmbuild/BUILD/sphinx-automodapi-0.14.1/sphinx_automodapi/tests/cases/mixed_toplevel_nodiagram-False] __________________________
tmpdir = local('/tmp/pytest-of-tkloczko/pytest-17/test_run_full_case__home_tkloc22')
case_dir = '/home/tkloczko/rpmbuild/BUILD/sphinx-automodapi-0.14.1/sphinx_automodapi/tests/cases/mixed_toplevel_nodiagram', parallel = False
@pytest.mark.parametrize(('case_dir', 'parallel'), product(CASES_DIRS, PARALLEL))
def test_run_full_case(tmpdir, case_dir, parallel):
input_dir = os.path.join(case_dir, 'input')
output_dir = os.path.join(case_dir, 'output')
docs_dir = tmpdir.mkdir('docs').strpath
conf = deepcopy(DEFAULT_CONF)
conf.update({'automodapi_toctreedirnm': 'api',
'automodapi_writereprocessed': True,
'automodsumm_writereprocessed': True})
if os.path.basename(case_dir) in ('mixed_toplevel',
'mixed_toplevel_all_objects',
'allowed_names'):
conf['extensions'].append('sphinx_automodapi.smart_resolver')
start_dir = os.path.abspath('.')
src_dir = 'src' if 'source_dir' in case_dir else '.'
ensuredir(os.path.join(docs_dir, src_dir))
write_conf(os.path.join(os.path.join(docs_dir, src_dir), 'conf.py'), conf)
for root, dirnames, filenames in os.walk(input_dir):
for filename in filenames:
root_dir = os.path.join(docs_dir, os.path.relpath(root, input_dir))
ensuredir(root_dir)
input_file = os.path.join(root, filename)
shutil.copy(input_file, root_dir)
argv = ['-W', '-b', 'html', src_dir, '_build/html']
if parallel:
argv.insert(0, '-j 4')
try:
os.chdir(docs_dir)
status = build_main(argv=argv)
finally:
os.chdir(start_dir)
> assert status == 0
E assert 2 == 0
sphinx_automodapi/tests/test_cases.py:106: AssertionError
----------------------------------------------------------------------------------- Captured stdout call ------------------------------------------------------------------------------------
Running Sphinx v6.1.3
----------------------------------------------------------------------------------- Captured stderr call ------------------------------------------------------------------------------------
Exception occurred:
File "/usr/lib/python3.8/site-packages/sphinx/deprecation.py", line 46, in __getattr__
warnings.warn(f"The alias '{self._modname}.{name}' is deprecated, "
sphinx.deprecation.RemovedInSphinx80Warning: The alias 'sphinx.util.progress_message' is deprecated, use 'sphinx.util.display.progress_message' instead. Check CHANGES for Sphinx API modifications.
The full traceback has been saved in /tmp/sphinx-err-pwoh6rzi.log, if you want to report the issue to the developers.
Please also report this if it was a user error, so that a better error message can be provided next time.
A bug report can be filed in the tracker at <https://github.com/sphinx-doc/sphinx/issues>. Thanks!
__________________________ test_run_full_case[/home/tkloczko/rpmbuild/BUILD/sphinx-automodapi-0.14.1/sphinx_automodapi/tests/cases/mixed_toplevel_nodiagram-True] ___________________________
tmpdir = local('/tmp/pytest-of-tkloczko/pytest-17/test_run_full_case__home_tkloc23')
case_dir = '/home/tkloczko/rpmbuild/BUILD/sphinx-automodapi-0.14.1/sphinx_automodapi/tests/cases/mixed_toplevel_nodiagram', parallel = True
@pytest.mark.parametrize(('case_dir', 'parallel'), product(CASES_DIRS, PARALLEL))
def test_run_full_case(tmpdir, case_dir, parallel):
input_dir = os.path.join(case_dir, 'input')
output_dir = os.path.join(case_dir, 'output')
docs_dir = tmpdir.mkdir('docs').strpath
conf = deepcopy(DEFAULT_CONF)
conf.update({'automodapi_toctreedirnm': 'api',
'automodapi_writereprocessed': True,
'automodsumm_writereprocessed': True})
if os.path.basename(case_dir) in ('mixed_toplevel',
'mixed_toplevel_all_objects',
'allowed_names'):
conf['extensions'].append('sphinx_automodapi.smart_resolver')
start_dir = os.path.abspath('.')
src_dir = 'src' if 'source_dir' in case_dir else '.'
ensuredir(os.path.join(docs_dir, src_dir))
write_conf(os.path.join(os.path.join(docs_dir, src_dir), 'conf.py'), conf)
for root, dirnames, filenames in os.walk(input_dir):
for filename in filenames:
root_dir = os.path.join(docs_dir, os.path.relpath(root, input_dir))
ensuredir(root_dir)
input_file = os.path.join(root, filename)
shutil.copy(input_file, root_dir)
argv = ['-W', '-b', 'html', src_dir, '_build/html']
if parallel:
argv.insert(0, '-j 4')
try:
os.chdir(docs_dir)
status = build_main(argv=argv)
finally:
os.chdir(start_dir)
> assert status == 0
E assert 2 == 0
sphinx_automodapi/tests/test_cases.py:106: AssertionError
----------------------------------------------------------------------------------- Captured stdout call ------------------------------------------------------------------------------------
Running Sphinx v6.1.3
----------------------------------------------------------------------------------- Captured stderr call ------------------------------------------------------------------------------------
Exception occurred:
File "/usr/lib/python3.8/site-packages/sphinx/deprecation.py", line 46, in __getattr__
warnings.warn(f"The alias '{self._modname}.{name}' is deprecated, "
sphinx.deprecation.RemovedInSphinx80Warning: The alias 'sphinx.util.progress_message' is deprecated, use 'sphinx.util.display.progress_message' instead. Check CHANGES for Sphinx API modifications.
The full traceback has been saved in /tmp/sphinx-err-v6mztvdf.log, if you want to report the issue to the developers.
Please also report this if it was a user error, so that a better error message can be provided next time.
A bug report can be filed in the tracker at <https://github.com/sphinx-doc/sphinx/issues>. Thanks!
___________________________________ test_run_full_case[/home/tkloczko/rpmbuild/BUILD/sphinx-automodapi-0.14.1/sphinx_automodapi/tests/cases/nested-False] ___________________________________
tmpdir = local('/tmp/pytest-of-tkloczko/pytest-17/test_run_full_case__home_tkloc24')
case_dir = '/home/tkloczko/rpmbuild/BUILD/sphinx-automodapi-0.14.1/sphinx_automodapi/tests/cases/nested', parallel = False
@pytest.mark.parametrize(('case_dir', 'parallel'), product(CASES_DIRS, PARALLEL))
def test_run_full_case(tmpdir, case_dir, parallel):
input_dir = os.path.join(case_dir, 'input')
output_dir = os.path.join(case_dir, 'output')
docs_dir = tmpdir.mkdir('docs').strpath
conf = deepcopy(DEFAULT_CONF)
conf.update({'automodapi_toctreedirnm': 'api',
'automodapi_writereprocessed': True,
'automodsumm_writereprocessed': True})
if os.path.basename(case_dir) in ('mixed_toplevel',
'mixed_toplevel_all_objects',
'allowed_names'):
conf['extensions'].append('sphinx_automodapi.smart_resolver')
start_dir = os.path.abspath('.')
src_dir = 'src' if 'source_dir' in case_dir else '.'
ensuredir(os.path.join(docs_dir, src_dir))
write_conf(os.path.join(os.path.join(docs_dir, src_dir), 'conf.py'), conf)
for root, dirnames, filenames in os.walk(input_dir):
for filename in filenames:
root_dir = os.path.join(docs_dir, os.path.relpath(root, input_dir))
ensuredir(root_dir)
input_file = os.path.join(root, filename)
shutil.copy(input_file, root_dir)
argv = ['-W', '-b', 'html', src_dir, '_build/html']
if parallel:
argv.insert(0, '-j 4')
try:
os.chdir(docs_dir)
status = build_main(argv=argv)
finally:
os.chdir(start_dir)
> assert status == 0
E assert 2 == 0
sphinx_automodapi/tests/test_cases.py:106: AssertionError
----------------------------------------------------------------------------------- Captured stdout call ------------------------------------------------------------------------------------
Running Sphinx v6.1.3
----------------------------------------------------------------------------------- Captured stderr call ------------------------------------------------------------------------------------
Exception occurred:
File "/usr/lib/python3.8/site-packages/sphinx/deprecation.py", line 46, in __getattr__
warnings.warn(f"The alias '{self._modname}.{name}' is deprecated, "
sphinx.deprecation.RemovedInSphinx80Warning: The alias 'sphinx.util.progress_message' is deprecated, use 'sphinx.util.display.progress_message' instead. Check CHANGES for Sphinx API modifications.
The full traceback has been saved in /tmp/sphinx-err-d5tz24kp.log, if you want to report the issue to the developers.
Please also report this if it was a user error, so that a better error message can be provided next time.
A bug report can be filed in the tracker at <https://github.com/sphinx-doc/sphinx/issues>. Thanks!
___________________________________ test_run_full_case[/home/tkloczko/rpmbuild/BUILD/sphinx-automodapi-0.14.1/sphinx_automodapi/tests/cases/nested-True] ____________________________________
tmpdir = local('/tmp/pytest-of-tkloczko/pytest-17/test_run_full_case__home_tkloc25')
case_dir = '/home/tkloczko/rpmbuild/BUILD/sphinx-automodapi-0.14.1/sphinx_automodapi/tests/cases/nested', parallel = True
@pytest.mark.parametrize(('case_dir', 'parallel'), product(CASES_DIRS, PARALLEL))
def test_run_full_case(tmpdir, case_dir, parallel):
input_dir = os.path.join(case_dir, 'input')
output_dir = os.path.join(case_dir, 'output')
docs_dir = tmpdir.mkdir('docs').strpath
conf = deepcopy(DEFAULT_CONF)
conf.update({'automodapi_toctreedirnm': 'api',
'automodapi_writereprocessed': True,
'automodsumm_writereprocessed': True})
if os.path.basename(case_dir) in ('mixed_toplevel',
'mixed_toplevel_all_objects',
'allowed_names'):
conf['extensions'].append('sphinx_automodapi.smart_resolver')
start_dir = os.path.abspath('.')
src_dir = 'src' if 'source_dir' in case_dir else '.'
ensuredir(os.path.join(docs_dir, src_dir))
write_conf(os.path.join(os.path.join(docs_dir, src_dir), 'conf.py'), conf)
for root, dirnames, filenames in os.walk(input_dir):
for filename in filenames:
root_dir = os.path.join(docs_dir, os.path.relpath(root, input_dir))
ensuredir(root_dir)
input_file = os.path.join(root, filename)
shutil.copy(input_file, root_dir)
argv = ['-W', '-b', 'html', src_dir, '_build/html']
if parallel:
argv.insert(0, '-j 4')
try:
os.chdir(docs_dir)
status = build_main(argv=argv)
finally:
os.chdir(start_dir)
> assert status == 0
E assert 2 == 0
sphinx_automodapi/tests/test_cases.py:106: AssertionError
----------------------------------------------------------------------------------- Captured stdout call ------------------------------------------------------------------------------------
Running Sphinx v6.1.3
----------------------------------------------------------------------------------- Captured stderr call ------------------------------------------------------------------------------------
Exception occurred:
File "/usr/lib/python3.8/site-packages/sphinx/deprecation.py", line 46, in __getattr__
warnings.warn(f"The alias '{self._modname}.{name}' is deprecated, "
sphinx.deprecation.RemovedInSphinx80Warning: The alias 'sphinx.util.progress_message' is deprecated, use 'sphinx.util.display.progress_message' instead. Check CHANGES for Sphinx API modifications.
The full traceback has been saved in /tmp/sphinx-err-tg70fhht.log, if you want to report the issue to the developers.
Please also report this if it was a user error, so that a better error message can be provided next time.
A bug report can be filed in the tracker at <https://github.com/sphinx-doc/sphinx/issues>. Thanks!
_________________________________ test_run_full_case[/home/tkloczko/rpmbuild/BUILD/sphinx-automodapi-0.14.1/sphinx_automodapi/tests/cases/non_ascii-False] __________________________________
tmpdir = local('/tmp/pytest-of-tkloczko/pytest-17/test_run_full_case__home_tkloc26')
case_dir = '/home/tkloczko/rpmbuild/BUILD/sphinx-automodapi-0.14.1/sphinx_automodapi/tests/cases/non_ascii', parallel = False
@pytest.mark.parametrize(('case_dir', 'parallel'), product(CASES_DIRS, PARALLEL))
def test_run_full_case(tmpdir, case_dir, parallel):
input_dir = os.path.join(case_dir, 'input')
output_dir = os.path.join(case_dir, 'output')
docs_dir = tmpdir.mkdir('docs').strpath
conf = deepcopy(DEFAULT_CONF)
conf.update({'automodapi_toctreedirnm': 'api',
'automodapi_writereprocessed': True,
'automodsumm_writereprocessed': True})
if os.path.basename(case_dir) in ('mixed_toplevel',
'mixed_toplevel_all_objects',
'allowed_names'):
conf['extensions'].append('sphinx_automodapi.smart_resolver')
start_dir = os.path.abspath('.')
src_dir = 'src' if 'source_dir' in case_dir else '.'
ensuredir(os.path.join(docs_dir, src_dir))
write_conf(os.path.join(os.path.join(docs_dir, src_dir), 'conf.py'), conf)
for root, dirnames, filenames in os.walk(input_dir):
for filename in filenames:
root_dir = os.path.join(docs_dir, os.path.relpath(root, input_dir))
ensuredir(root_dir)
input_file = os.path.join(root, filename)
shutil.copy(input_file, root_dir)
argv = ['-W', '-b', 'html', src_dir, '_build/html']
if parallel:
argv.insert(0, '-j 4')
try:
os.chdir(docs_dir)
status = build_main(argv=argv)
finally:
os.chdir(start_dir)
> assert status == 0
E assert 2 == 0
sphinx_automodapi/tests/test_cases.py:106: AssertionError
----------------------------------------------------------------------------------- Captured stdout call ------------------------------------------------------------------------------------
Running Sphinx v6.1.3
----------------------------------------------------------------------------------- Captured stderr call ------------------------------------------------------------------------------------
Exception occurred:
File "/usr/lib/python3.8/site-packages/sphinx/deprecation.py", line 46, in __getattr__
warnings.warn(f"The alias '{self._modname}.{name}' is deprecated, "
sphinx.deprecation.RemovedInSphinx80Warning: The alias 'sphinx.util.progress_message' is deprecated, use 'sphinx.util.display.progress_message' instead. Check CHANGES for Sphinx API modifications.
The full traceback has been saved in /tmp/sphinx-err-p1oudrfl.log, if you want to report the issue to the developers.
Please also report this if it was a user error, so that a better error message can be provided next time.
A bug report can be filed in the tracker at <https://github.com/sphinx-doc/sphinx/issues>. Thanks!
__________________________________ test_run_full_case[/home/tkloczko/rpmbuild/BUILD/sphinx-automodapi-0.14.1/sphinx_automodapi/tests/cases/non_ascii-True] __________________________________
tmpdir = local('/tmp/pytest-of-tkloczko/pytest-17/test_run_full_case__home_tkloc27')
case_dir = '/home/tkloczko/rpmbuild/BUILD/sphinx-automodapi-0.14.1/sphinx_automodapi/tests/cases/non_ascii', parallel = True
@pytest.mark.parametrize(('case_dir', 'parallel'), product(CASES_DIRS, PARALLEL))
def test_run_full_case(tmpdir, case_dir, parallel):
input_dir = os.path.join(case_dir, 'input')
output_dir = os.path.join(case_dir, 'output')
docs_dir = tmpdir.mkdir('docs').strpath
conf = deepcopy(DEFAULT_CONF)
conf.update({'automodapi_toctreedirnm': 'api',
'automodapi_writereprocessed': True,
'automodsumm_writereprocessed': True})
if os.path.basename(case_dir) in ('mixed_toplevel',
'mixed_toplevel_all_objects',
'allowed_names'):
conf['extensions'].append('sphinx_automodapi.smart_resolver')
start_dir = os.path.abspath('.')
src_dir = 'src' if 'source_dir' in case_dir else '.'
ensuredir(os.path.join(docs_dir, src_dir))
write_conf(os.path.join(os.path.join(docs_dir, src_dir), 'conf.py'), conf)
for root, dirnames, filenames in os.walk(input_dir):
for filename in filenames:
root_dir = os.path.join(docs_dir, os.path.relpath(root, input_dir))
ensuredir(root_dir)
input_file = os.path.join(root, filename)
shutil.copy(input_file, root_dir)
argv = ['-W', '-b', 'html', src_dir, '_build/html']
if parallel:
argv.insert(0, '-j 4')
try:
os.chdir(docs_dir)
status = build_main(argv=argv)
finally:
os.chdir(start_dir)
> assert status == 0
E assert 2 == 0
sphinx_automodapi/tests/test_cases.py:106: AssertionError
----------------------------------------------------------------------------------- Captured stdout call ------------------------------------------------------------------------------------
Running Sphinx v6.1.3
----------------------------------------------------------------------------------- Captured stderr call ------------------------------------------------------------------------------------
Exception occurred:
File "/usr/lib/python3.8/site-packages/sphinx/deprecation.py", line 46, in __getattr__
warnings.warn(f"The alias '{self._modname}.{name}' is deprecated, "
sphinx.deprecation.RemovedInSphinx80Warning: The alias 'sphinx.util.progress_message' is deprecated, use 'sphinx.util.display.progress_message' instead. Check CHANGES for Sphinx API modifications.
The full traceback has been saved in /tmp/sphinx-err-bdpqzz3q.log, if you want to report the issue to the developers.
Please also report this if it was a user error, so that a better error message can be provided next time.
A bug report can be filed in the tracker at <https://github.com/sphinx-doc/sphinx/issues>. Thanks!
_________________________________ test_run_full_case[/home/tkloczko/rpmbuild/BUILD/sphinx-automodapi-0.14.1/sphinx_automodapi/tests/cases/source_dir-False] _________________________________
tmpdir = local('/tmp/pytest-of-tkloczko/pytest-17/test_run_full_case__home_tkloc28')
case_dir = '/home/tkloczko/rpmbuild/BUILD/sphinx-automodapi-0.14.1/sphinx_automodapi/tests/cases/source_dir', parallel = False
@pytest.mark.parametrize(('case_dir', 'parallel'), product(CASES_DIRS, PARALLEL))
def test_run_full_case(tmpdir, case_dir, parallel):
input_dir = os.path.join(case_dir, 'input')
output_dir = os.path.join(case_dir, 'output')
docs_dir = tmpdir.mkdir('docs').strpath
conf = deepcopy(DEFAULT_CONF)
conf.update({'automodapi_toctreedirnm': 'api',
'automodapi_writereprocessed': True,
'automodsumm_writereprocessed': True})
if os.path.basename(case_dir) in ('mixed_toplevel',
'mixed_toplevel_all_objects',
'allowed_names'):
conf['extensions'].append('sphinx_automodapi.smart_resolver')
start_dir = os.path.abspath('.')
src_dir = 'src' if 'source_dir' in case_dir else '.'
ensuredir(os.path.join(docs_dir, src_dir))
write_conf(os.path.join(os.path.join(docs_dir, src_dir), 'conf.py'), conf)
for root, dirnames, filenames in os.walk(input_dir):
for filename in filenames:
root_dir = os.path.join(docs_dir, os.path.relpath(root, input_dir))
ensuredir(root_dir)
input_file = os.path.join(root, filename)
shutil.copy(input_file, root_dir)
argv = ['-W', '-b', 'html', src_dir, '_build/html']
if parallel:
argv.insert(0, '-j 4')
try:
os.chdir(docs_dir)
status = build_main(argv=argv)
finally:
os.chdir(start_dir)
> assert status == 0
E assert 2 == 0
sphinx_automodapi/tests/test_cases.py:106: AssertionError
----------------------------------------------------------------------------------- Captured stdout call ------------------------------------------------------------------------------------
Running Sphinx v6.1.3
----------------------------------------------------------------------------------- Captured stderr call ------------------------------------------------------------------------------------
Exception occurred:
File "/usr/lib/python3.8/site-packages/sphinx/deprecation.py", line 46, in __getattr__
warnings.warn(f"The alias '{self._modname}.{name}' is deprecated, "
sphinx.deprecation.RemovedInSphinx80Warning: The alias 'sphinx.util.progress_message' is deprecated, use 'sphinx.util.display.progress_message' instead. Check CHANGES for Sphinx API modifications.
The full traceback has been saved in /tmp/sphinx-err-3n1_dd6l.log, if you want to report the issue to the developers.
Please also report this if it was a user error, so that a better error message can be provided next time.
A bug report can be filed in the tracker at <https://github.com/sphinx-doc/sphinx/issues>. Thanks!
_________________________________ test_run_full_case[/home/tkloczko/rpmbuild/BUILD/sphinx-automodapi-0.14.1/sphinx_automodapi/tests/cases/source_dir-True] __________________________________
tmpdir = local('/tmp/pytest-of-tkloczko/pytest-17/test_run_full_case__home_tkloc29')
case_dir = '/home/tkloczko/rpmbuild/BUILD/sphinx-automodapi-0.14.1/sphinx_automodapi/tests/cases/source_dir', parallel = True
@pytest.mark.parametrize(('case_dir', 'parallel'), product(CASES_DIRS, PARALLEL))
def test_run_full_case(tmpdir, case_dir, parallel):
input_dir = os.path.join(case_dir, 'input')
output_dir = os.path.join(case_dir, 'output')
docs_dir = tmpdir.mkdir('docs').strpath
conf = deepcopy(DEFAULT_CONF)
conf.update({'automodapi_toctreedirnm': 'api',
'automodapi_writereprocessed': True,
'automodsumm_writereprocessed': True})
if os.path.basename(case_dir) in ('mixed_toplevel',
'mixed_toplevel_all_objects',
'allowed_names'):
conf['extensions'].append('sphinx_automodapi.smart_resolver')
start_dir = os.path.abspath('.')
src_dir = 'src' if 'source_dir' in case_dir else '.'
ensuredir(os.path.join(docs_dir, src_dir))
write_conf(os.path.join(os.path.join(docs_dir, src_dir), 'conf.py'), conf)
for root, dirnames, filenames in os.walk(input_dir):
for filename in filenames:
root_dir = os.path.join(docs_dir, os.path.relpath(root, input_dir))
ensuredir(root_dir)
input_file = os.path.join(root, filename)
shutil.copy(input_file, root_dir)
argv = ['-W', '-b', 'html', src_dir, '_build/html']
if parallel:
argv.insert(0, '-j 4')
try:
os.chdir(docs_dir)
status = build_main(argv=argv)
finally:
os.chdir(start_dir)
> assert status == 0
E assert 2 == 0
sphinx_automodapi/tests/test_cases.py:106: AssertionError
----------------------------------------------------------------------------------- Captured stdout call ------------------------------------------------------------------------------------
Running Sphinx v6.1.3
----------------------------------------------------------------------------------- Captured stderr call ------------------------------------------------------------------------------------
Exception occurred:
File "/usr/lib/python3.8/site-packages/sphinx/deprecation.py", line 46, in __getattr__
warnings.warn(f"The alias '{self._modname}.{name}' is deprecated, "
sphinx.deprecation.RemovedInSphinx80Warning: The alias 'sphinx.util.progress_message' is deprecated, use 'sphinx.util.display.progress_message' instead. Check CHANGES for Sphinx API modifications.
The full traceback has been saved in /tmp/sphinx-err-ga8ags7x.log, if you want to report the issue to the developers.
Please also report this if it was a user error, so that a better error message can be provided next time.
A bug report can be filed in the tracker at <https://github.com/sphinx-doc/sphinx/issues>. Thanks!
_________________________________ test_run_full_case[/home/tkloczko/rpmbuild/BUILD/sphinx-automodapi-0.14.1/sphinx_automodapi/tests/cases/variables-False] __________________________________
tmpdir = local('/tmp/pytest-of-tkloczko/pytest-17/test_run_full_case__home_tkloc30')
case_dir = '/home/tkloczko/rpmbuild/BUILD/sphinx-automodapi-0.14.1/sphinx_automodapi/tests/cases/variables', parallel = False
@pytest.mark.parametrize(('case_dir', 'parallel'), product(CASES_DIRS, PARALLEL))
def test_run_full_case(tmpdir, case_dir, parallel):
input_dir = os.path.join(case_dir, 'input')
output_dir = os.path.join(case_dir, 'output')
docs_dir = tmpdir.mkdir('docs').strpath
conf = deepcopy(DEFAULT_CONF)
conf.update({'automodapi_toctreedirnm': 'api',
'automodapi_writereprocessed': True,
'automodsumm_writereprocessed': True})
if os.path.basename(case_dir) in ('mixed_toplevel',
'mixed_toplevel_all_objects',
'allowed_names'):
conf['extensions'].append('sphinx_automodapi.smart_resolver')
start_dir = os.path.abspath('.')
src_dir = 'src' if 'source_dir' in case_dir else '.'
ensuredir(os.path.join(docs_dir, src_dir))
write_conf(os.path.join(os.path.join(docs_dir, src_dir), 'conf.py'), conf)
for root, dirnames, filenames in os.walk(input_dir):
for filename in filenames:
root_dir = os.path.join(docs_dir, os.path.relpath(root, input_dir))
ensuredir(root_dir)
input_file = os.path.join(root, filename)
shutil.copy(input_file, root_dir)
argv = ['-W', '-b', 'html', src_dir, '_build/html']
if parallel:
argv.insert(0, '-j 4')
try:
os.chdir(docs_dir)
status = build_main(argv=argv)
finally:
os.chdir(start_dir)
> assert status == 0
E assert 2 == 0
sphinx_automodapi/tests/test_cases.py:106: AssertionError
----------------------------------------------------------------------------------- Captured stdout call ------------------------------------------------------------------------------------
Running Sphinx v6.1.3
----------------------------------------------------------------------------------- Captured stderr call ------------------------------------------------------------------------------------
Exception occurred:
File "/usr/lib/python3.8/site-packages/sphinx/deprecation.py", line 46, in __getattr__
warnings.warn(f"The alias '{self._modname}.{name}' is deprecated, "
sphinx.deprecation.RemovedInSphinx80Warning: The alias 'sphinx.util.progress_message' is deprecated, use 'sphinx.util.display.progress_message' instead. Check CHANGES for Sphinx API modifications.
The full traceback has been saved in /tmp/sphinx-err-a312zttp.log, if you want to report the issue to the developers.
Please also report this if it was a user error, so that a better error message can be provided next time.
A bug report can be filed in the tracker at <https://github.com/sphinx-doc/sphinx/issues>. Thanks!
__________________________________ test_run_full_case[/home/tkloczko/rpmbuild/BUILD/sphinx-automodapi-0.14.1/sphinx_automodapi/tests/cases/variables-True] __________________________________
tmpdir = local('/tmp/pytest-of-tkloczko/pytest-17/test_run_full_case__home_tkloc31')
case_dir = '/home/tkloczko/rpmbuild/BUILD/sphinx-automodapi-0.14.1/sphinx_automodapi/tests/cases/variables', parallel = True
@pytest.mark.parametrize(('case_dir', 'parallel'), product(CASES_DIRS, PARALLEL))
def test_run_full_case(tmpdir, case_dir, parallel):
input_dir = os.path.join(case_dir, 'input')
output_dir = os.path.join(case_dir, 'output')
docs_dir = tmpdir.mkdir('docs').strpath
conf = deepcopy(DEFAULT_CONF)
conf.update({'automodapi_toctreedirnm': 'api',
'automodapi_writereprocessed': True,
'automodsumm_writereprocessed': True})
if os.path.basename(case_dir) in ('mixed_toplevel',
'mixed_toplevel_all_objects',
'allowed_names'):
conf['extensions'].append('sphinx_automodapi.smart_resolver')
start_dir = os.path.abspath('.')
src_dir = 'src' if 'source_dir' in case_dir else '.'
ensuredir(os.path.join(docs_dir, src_dir))
write_conf(os.path.join(os.path.join(docs_dir, src_dir), 'conf.py'), conf)
for root, dirnames, filenames in os.walk(input_dir):
for filename in filenames:
root_dir = os.path.join(docs_dir, os.path.relpath(root, input_dir))
ensuredir(root_dir)
input_file = os.path.join(root, filename)
shutil.copy(input_file, root_dir)
argv = ['-W', '-b', 'html', src_dir, '_build/html']
if parallel:
argv.insert(0, '-j 4')
try:
os.chdir(docs_dir)
status = build_main(argv=argv)
finally:
os.chdir(start_dir)
> assert status == 0
E assert 2 == 0
sphinx_automodapi/tests/test_cases.py:106: AssertionError
----------------------------------------------------------------------------------- Captured stdout call ------------------------------------------------------------------------------------
Running Sphinx v6.1.3
----------------------------------------------------------------------------------- Captured stderr call ------------------------------------------------------------------------------------
Exception occurred:
File "/usr/lib/python3.8/site-packages/sphinx/deprecation.py", line 46, in __getattr__
warnings.warn(f"The alias '{self._modname}.{name}' is deprecated, "
sphinx.deprecation.RemovedInSphinx80Warning: The alias 'sphinx.util.progress_message' is deprecated, use 'sphinx.util.display.progress_message' instead. Check CHANGES for Sphinx API modifications.
The full traceback has been saved in /tmp/sphinx-err-nx5v7cp8.log, if you want to report the issue to the developers.
Please also report this if it was a user error, so that a better error message can be provided next time.
A bug report can be filed in the tracker at <https://github.com/sphinx-doc/sphinx/issues>. Thanks!
================================================================================== short test summary info ==================================================================================
FAILED sphinx_automodapi/tests/test_automodapi.py::test_am_replacer_basic - AssertionError
FAILED sphinx_automodapi/tests/test_automodapi.py::test_am_replacer_writereprocessed[False] - AssertionError
FAILED sphinx_automodapi/tests/test_automodapi.py::test_am_replacer_writereprocessed[True] - AssertionError
FAILED sphinx_automodapi/tests/test_automodapi.py::test_am_replacer_noinh - AssertionError
FAILED sphinx_automodapi/tests/test_automodapi.py::test_am_replacer_titleandhdrs - AssertionError
FAILED sphinx_automodapi/tests/test_automodapi.py::test_am_replacer_titleandhdrs_invalid - assert 'Not enough headings (got 1, need 2), using default -^' in '\nException occurred:\n File "/usr/lib/python3.8/site-packages/sphinx/deprecation.py", line 46, in __getattr__\n ...
FAILED sphinx_automodapi/tests/test_automodapi.py::test_am_replacer_nomain - AssertionError
FAILED sphinx_automodapi/tests/test_automodapi.py::test_am_replacer_skip - AssertionError
FAILED sphinx_automodapi/tests/test_automodapi.py::test_am_replacer_skip_stdlib - AssertionError
FAILED sphinx_automodapi/tests/test_automodapi.py::test_am_replacer_include_stdlib - AssertionError
FAILED sphinx_automodapi/tests/test_automodapi.py::test_am_replacer_include - AssertionError
FAILED sphinx_automodapi/tests/test_automodapi.py::test_am_replacer_invalidop - assert 'Found additional options invalid-option in automodapi.' in '\nException occurred:\n File "/usr/lib/python3.8/site-packages/sphinx/deprecation.py", line 46, in __getattr__\n ...
FAILED sphinx_automodapi/tests/test_automodapi.py::test_am_replacer_cython - AssertionError
FAILED sphinx_automodapi/tests/test_automodsumm.py::test_ams_to_asmry - AssertionError
FAILED sphinx_automodapi/tests/test_automodsumm.py::test_too_many_options - assert '[automodsumm] Defined more than one of functions-only, classes-only, and variables-only. Skipping this directive.' in '\nException occurred:\n File "/usr/lib/python3.8/site-p...
FAILED sphinx_automodapi/tests/test_automodsumm.py::test_am_allowed_package_names[-expect0] - AssertionError
FAILED sphinx_automodapi/tests/test_automodsumm.py::test_am_allowed_package_names[:allowed-package-names: sphinx_automodapi-expect1] - AssertionError
FAILED sphinx_automodapi/tests/test_automodsumm.py::test_am_allowed_package_names[:allowed-package-names: collections-expect2] - AssertionError
FAILED sphinx_automodapi/tests/test_automodsumm.py::test_am_allowed_package_names[:allowed-package-names: sphinx_automodapi,collections-expect3] - AssertionError
FAILED sphinx_automodapi/tests/test_automodsumm.py::test_ams_cython - AssertionError
FAILED sphinx_automodapi/tests/test_cases.py::test_run_full_case[/home/tkloczko/rpmbuild/BUILD/sphinx-automodapi-0.14.1/sphinx_automodapi/tests/cases/abstract_classes-False] - assert 2 == 0
FAILED sphinx_automodapi/tests/test_cases.py::test_run_full_case[/home/tkloczko/rpmbuild/BUILD/sphinx-automodapi-0.14.1/sphinx_automodapi/tests/cases/abstract_classes-True] - assert 2 == 0
FAILED sphinx_automodapi/tests/test_cases.py::test_run_full_case[/home/tkloczko/rpmbuild/BUILD/sphinx-automodapi-0.14.1/sphinx_automodapi/tests/cases/allowed_names-False] - assert 2 == 0
FAILED sphinx_automodapi/tests/test_cases.py::test_run_full_case[/home/tkloczko/rpmbuild/BUILD/sphinx-automodapi-0.14.1/sphinx_automodapi/tests/cases/allowed_names-True] - assert 2 == 0
FAILED sphinx_automodapi/tests/test_cases.py::test_run_full_case[/home/tkloczko/rpmbuild/BUILD/sphinx-automodapi-0.14.1/sphinx_automodapi/tests/cases/classes_no_inherit-False] - assert 2 == 0
FAILED sphinx_automodapi/tests/test_cases.py::test_run_full_case[/home/tkloczko/rpmbuild/BUILD/sphinx-automodapi-0.14.1/sphinx_automodapi/tests/cases/classes_no_inherit-True] - assert 2 == 0
FAILED sphinx_automodapi/tests/test_cases.py::test_run_full_case[/home/tkloczko/rpmbuild/BUILD/sphinx-automodapi-0.14.1/sphinx_automodapi/tests/cases/classes_with_inherit-False] - assert 2 == 0
FAILED sphinx_automodapi/tests/test_cases.py::test_run_full_case[/home/tkloczko/rpmbuild/BUILD/sphinx-automodapi-0.14.1/sphinx_automodapi/tests/cases/classes_with_inherit-True] - assert 2 == 0
FAILED sphinx_automodapi/tests/test_cases.py::test_run_full_case[/home/tkloczko/rpmbuild/BUILD/sphinx-automodapi-0.14.1/sphinx_automodapi/tests/cases/func_headings-False] - assert 2 == 0
FAILED sphinx_automodapi/tests/test_cases.py::test_run_full_case[/home/tkloczko/rpmbuild/BUILD/sphinx-automodapi-0.14.1/sphinx_automodapi/tests/cases/func_headings-True] - assert 2 == 0
FAILED sphinx_automodapi/tests/test_cases.py::test_run_full_case[/home/tkloczko/rpmbuild/BUILD/sphinx-automodapi-0.14.1/sphinx_automodapi/tests/cases/func_noheading-False] - assert 2 == 0
FAILED sphinx_automodapi/tests/test_cases.py::test_run_full_case[/home/tkloczko/rpmbuild/BUILD/sphinx-automodapi-0.14.1/sphinx_automodapi/tests/cases/func_noheading-True] - assert 2 == 0
FAILED sphinx_automodapi/tests/test_cases.py::test_run_full_case[/home/tkloczko/rpmbuild/BUILD/sphinx-automodapi-0.14.1/sphinx_automodapi/tests/cases/func_nomaindocstring-False] - assert 2 == 0
FAILED sphinx_automodapi/tests/test_cases.py::test_run_full_case[/home/tkloczko/rpmbuild/BUILD/sphinx-automodapi-0.14.1/sphinx_automodapi/tests/cases/func_nomaindocstring-True] - assert 2 == 0
FAILED sphinx_automodapi/tests/test_cases.py::test_run_full_case[/home/tkloczko/rpmbuild/BUILD/sphinx-automodapi-0.14.1/sphinx_automodapi/tests/cases/func_simple-False] - assert 2 == 0
FAILED sphinx_automodapi/tests/test_cases.py::test_run_full_case[/home/tkloczko/rpmbuild/BUILD/sphinx-automodapi-0.14.1/sphinx_automodapi/tests/cases/func_simple-True] - assert 2 == 0
FAILED sphinx_automodapi/tests/test_cases.py::test_run_full_case[/home/tkloczko/rpmbuild/BUILD/sphinx-automodapi-0.14.1/sphinx_automodapi/tests/cases/inherited_members-False] - assert 2 == 0
FAILED sphinx_automodapi/tests/test_cases.py::test_run_full_case[/home/tkloczko/rpmbuild/BUILD/sphinx-automodapi-0.14.1/sphinx_automodapi/tests/cases/inherited_members-True] - assert 2 == 0
FAILED sphinx_automodapi/tests/test_cases.py::test_run_full_case[/home/tkloczko/rpmbuild/BUILD/sphinx-automodapi-0.14.1/sphinx_automodapi/tests/cases/mixed_toplevel-False] - assert 2 == 0
FAILED sphinx_automodapi/tests/test_cases.py::test_run_full_case[/home/tkloczko/rpmbuild/BUILD/sphinx-automodapi-0.14.1/sphinx_automodapi/tests/cases/mixed_toplevel-True] - assert 2 == 0
FAILED sphinx_automodapi/tests/test_cases.py::test_run_full_case[/home/tkloczko/rpmbuild/BUILD/sphinx-automodapi-0.14.1/sphinx_automodapi/tests/cases/mixed_toplevel_all_objects-False] - assert 2 == 0
FAILED sphinx_automodapi/tests/test_cases.py::test_run_full_case[/home/tkloczko/rpmbuild/BUILD/sphinx-automodapi-0.14.1/sphinx_automodapi/tests/cases/mixed_toplevel_all_objects-True] - assert 2 == 0
FAILED sphinx_automodapi/tests/test_cases.py::test_run_full_case[/home/tkloczko/rpmbuild/BUILD/sphinx-automodapi-0.14.1/sphinx_automodapi/tests/cases/mixed_toplevel_nodiagram-False] - assert 2 == 0
FAILED sphinx_automodapi/tests/test_cases.py::test_run_full_case[/home/tkloczko/rpmbuild/BUILD/sphinx-automodapi-0.14.1/sphinx_automodapi/tests/cases/mixed_toplevel_nodiagram-True] - assert 2 == 0
FAILED sphinx_automodapi/tests/test_cases.py::test_run_full_case[/home/tkloczko/rpmbuild/BUILD/sphinx-automodapi-0.14.1/sphinx_automodapi/tests/cases/nested-False] - assert 2 == 0
FAILED sphinx_automodapi/tests/test_cases.py::test_run_full_case[/home/tkloczko/rpmbuild/BUILD/sphinx-automodapi-0.14.1/sphinx_automodapi/tests/cases/nested-True] - assert 2 == 0
FAILED sphinx_automodapi/tests/test_cases.py::test_run_full_case[/home/tkloczko/rpmbuild/BUILD/sphinx-automodapi-0.14.1/sphinx_automodapi/tests/cases/non_ascii-False] - assert 2 == 0
FAILED sphinx_automodapi/tests/test_cases.py::test_run_full_case[/home/tkloczko/rpmbuild/BUILD/sphinx-automodapi-0.14.1/sphinx_automodapi/tests/cases/non_ascii-True] - assert 2 == 0
FAILED sphinx_automodapi/tests/test_cases.py::test_run_full_case[/home/tkloczko/rpmbuild/BUILD/sphinx-automodapi-0.14.1/sphinx_automodapi/tests/cases/source_dir-False] - assert 2 == 0
FAILED sphinx_automodapi/tests/test_cases.py::test_run_full_case[/home/tkloczko/rpmbuild/BUILD/sphinx-automodapi-0.14.1/sphinx_automodapi/tests/cases/source_dir-True] - assert 2 == 0
FAILED sphinx_automodapi/tests/test_cases.py::test_run_full_case[/home/tkloczko/rpmbuild/BUILD/sphinx-automodapi-0.14.1/sphinx_automodapi/tests/cases/variables-False] - assert 2 == 0
FAILED sphinx_automodapi/tests/test_cases.py::test_run_full_case[/home/tkloczko/rpmbuild/BUILD/sphinx-automodapi-0.14.1/sphinx_automodapi/tests/cases/variables-True] - assert 2 == 0
=============================================================================== 52 failed, 3 passed in 4.13s ================================================================================ |
Seems fine on https://github.com/astropy/sphinx-automodapi/actions/runs/4305003012/jobs/7506831154 |
Just curious, what is ´´-m "not network"´´? Is that a built in pytest option? |
@saimn , do you already have a tag ready to push out? Or should I tag 0.15.0 from current main? |
Thx to let me know about that ticket. 👍 |
BTW I'm usimg small patch: --- a/docs/conf.py
+++ b/docs/conf.py
@@ -1,6 +1,10 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
-#
+
+import sys
+import os
+sys.path.insert(0, os.path.abspath('..'))
+
# -- General configuration ------------------------------------------------
from sphinx_automodapi import __version__ With that patch is possible to build documentation out of source tree without have installed it. This patch bases on example copy.py https://www.sphinx-doc.org/en/master/usage/configuration.html#example-of-configuration-file |
[tkloczko@pers-jacek SPECS]$ grep %sphinx_build_man python-*spec | wc -l
532 Above point that almost half of tjose modules have documentation produces as man pages. [tkloczko@pers-jacek SPECS]$ man python<tab><tab>
python-Jinja python-jsonschema python-six
python-aiosignal python-jupyter-client python-sphinx-autosummary-accessors
python-asttokens python-jupyter-sphinx python-sphinx-click
python-babel python-jupyter_core python-sphinx-remove-toctrees
python-backcall python-markupsafe python-sphinx-tabs
python-beautifulsoup python-mistune python-sphinx-theme-alabaster
python-bleach python-multidict python-sphinxcopybutton
python-build python-nbclient python-tinycss2
python-cffi python-nbconvert python-toolz
python-charset-normalizer python-nbformat python-traitlets
python-click python-numpydoc python-transaction
python-cython python-parso python-urllib3
python-dask-sphinx-theme python-persistent python-wcwidth
python-dateutil python-platformdirs python-webencodings
python-decorator python-pluggy python-wheel
python-fastavro python-prompt_toolkit python-yarl
python-fastjsonschema. python-psutil python-zipp
python-frozenlist python-ptyprocess python-zmq
python-fsspec python-pygments python-zope-event
python-html5lib python-pyproject-hooks python-zopeinterface
python-importlib-metadata python-pyrsistent python3
python-importlib_resources python-pytest python3.8
python-ipykernel python-repozel.ru pythonfg-packaging
python-ipython python-requests
python-jedi python-setuptools |
v0.15.0 is released. Thanks for your patience! |
Just tested 0.15.0 and all looks good now 😄 + PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-sphinx-automodapi-0.15.0-2.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-sphinx-automodapi-0.15.0-2.fc35.x86_64/usr/lib/python3.8/site-packages
+ /usr/bin/pytest -ra -m 'not network'
============================= test session starts ==============================
platform linux -- Python 3.8.16, pytest-7.2.2, pluggy-1.0.0
rootdir: /home/tkloczko/rpmbuild/BUILD/sphinx-automodapi-0.15.0, configfile: setup.cfg, testpaths: sphinx_automodapi
collected 56 items
sphinx_automodapi/tests/test_autodoc_enhancements.py . [ 1%]
sphinx_automodapi/tests/test_automodapi.py ............. [ 25%]
sphinx_automodapi/tests/test_automodsumm.py ....... [ 37%]
sphinx_automodapi/tests/test_cases.py ................................. [ 96%]
sphinx_automodapi/tests/test_utils.py .. [100%]
============================= 56 passed in 36.02s ============================== Thank you 👍 |
Good to hear. Thanks for letting us know! Like @astrofrog , I am also curious about your usage of |
It i spart onf my %pytest rpm macro. # Additional command over which pytest and tox could be executed.
# Exemple: to run pytest/tox over "xvfb-run -a" redefin %%__py_wrapper to that value
%__py_wrapper %{nil}
%pytest %{expand:\\\
%{set_build_flags} \\\
PATH=%{buildroot}%{_bindir}:$PATH \\\
LD_LIBRARY_PATH=%{buildroot}%{_libdir} \\\
PYTHONDONTWRITEBYTECODE=1 \\\
PBR_VERSION=%(v=%{version}; echo ${v%~*}) \\\
PDM_PEP517_SCM_VERSION=%(v=%{version}; echo ${v%~*}) \\\
SETUPTOOLS_SCM_PRETEND_VERSION=%(v=%{version}; echo ${v%~*}) \\\
PYTHONPATH=${PYTHONPATH:-%{buildroot}%{python3_sitearch}:%{buildroot}%{python3_sitelib}} \\\
%__py_wrapper \\\
/usr/bin/pytest -ra}%{!?with_network: -m "not network"} so by add in spec file |
Interesting... We have our own https://github.com/astropy/pytest-remotedata ... |
So the same is possible to have without addional modules by just register custom pytest mark. [tkloczko@pers-jacek SPECS.fedora]$ grep 'not network' *
nautilus.spec:- use system-group.png not network-server.png for "Network Servers"
prosody.spec:- Start after network-online.target not network.target (#1256062)
pyproj.spec:py.test-3 -m "not network and not grid"
pyproj.spec:#py.test-3 -m "not network"
pyproj.spec:# not network ==> deselects 24 tests
pyshp.spec:%pytest --doctest-glob='README-no-network.md' -m '(not network)'
python-anyio.spec:%pytest -m "not network"
python-cartopy.spec: -m "not network"
python-contextily.spec:%{pytest} -m 'not network'
python-dask.spec: -m 'not network'
python-fiona.spec:%{pytest} -m "not network and not wheel" -k "not debian" -ra
python-matplotlib.spec: -m 'not network' \
python-mplcairo.spec:%{python3} run-mpl-test-suite.py --tolerance=50 -m 'not network' -v -n auto \
python-openapi-spec-validator.spec:%pytest -m 'not network'
python-pip.spec:%pytest -m 'not network' -k "$(echo $pytest_k)" \
python-rasterio.spec:%{pytest} -ra -m 'not network and not wheel' \
python-xarray.spec: -m "not network" I've embedded that functionality in my |
You can peak on those modules listed in fedora spec files to implemet the same if you need that. Few weeks in |
I'm packaging your module as an rpm package so I'm using the typical PEP517 based build, install and test cycle used on building packages from non-root account.
python3 -sBm build -w --no-isolation
build
with--no-isolation
I'm using during all processes only locally installed modulescut off from access to the public network
(pytest is executed with-m "not network"
)Here is list of installed modules in build env
The text was updated successfully, but these errors were encountered: