+ PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-default-values-0.6.0-2.fc37.x86_64/usr/lib64/python3.10/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-default-values-0.6.0-2.fc37.x86_64/usr/lib/python3.10/site-packages
+ /usr/bin/pytest -ra -m 'not network'
============================= test session starts ==============================
platform linux -- Python 3.10.14, pytest-8.2.2, pluggy-1.5.0
rootdir: /home/tkloczko/rpmbuild/BUILD/default_values-0.6.0
configfile: tox.ini
plugins: datadir-1.5.0, regressions-2.5.0, timeout-2.3.1
timeout: 300.0s
timeout method: signal
timeout func_only: False
collected 53 items
tests/test_format_default_value.py ........................ [ 45%]
tests/test_process_default_format.py ............... [ 73%]
tests/test_process_docstring.py ............. [ 98%]
tests/test_setup.py F [100%]
=================================== FAILURES ===================================
__________________________________ test_setup __________________________________
def test_setup():
app: Sphinx
setup_ret, directives, roles, additional_nodes, app = run_setup(sphinxcontrib.default_values.setup)
assert setup_ret == {
"version": __version__,
"parallel_read_safe": True,
"parallel_write_safe": True,
}
> assert app.config.values["default_description_format"] == ("Default %s", "env", [str])
E AssertionError: assert _Opt(default=...escription='') == ('Default %s'...class 'str'>])
E
E Use -v to get more diff
tests/test_setup.py:41: AssertionError
============================= slowest 25 durations =============================
0.01s call tests/test_process_docstring.py::test_process_docstring_demo
(24 durations < 0.005s hidden. Use -vv to show these durations.)
=========================== short test summary info ============================
FAILED tests/test_setup.py::test_setup - AssertionError: assert _Opt(default=...escription='') == ('Default %s'...cl...
========================= 1 failed, 52 passed in 0.68s =========================
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-isolationbuildwith--no-isolationI'm using during all processes only locally installed modulesinstallermodulecut off from access to the public network(pytest is executed with-m "not network")Here is pytest output:
List of installed modules in build env:
Please let me know if you need more details or want me to perform some diagnostics.