I’m finding that rubin_env 0.4.3 fails the same test case:
============================= test session starts ==============================
platform linux -- Python 3.8.11, pytest-6.2.4, py-1.10.0, pluggy-0.13.1
rootdir: /root/lsst_stack/stack/miniconda3-py38_4.9.2-0.6.0/EupsBuildDir/Linux64/utils-22.0.1+1a1dd69893/utils-22.0.1+1a1dd69893, configfile: setup.cfg
plugins: xdist-2.3.0, openfiles-0.5.0, forked-1.3.0, doctestplus-0.10.1, subtests-0.5.0, flake8-1.0.7, cov-2.12.1, session2file-0.1.11
gw0 I / gw1 I / gw2 I / gw3 I / gw4 I / gw5 I / gw6 I / gw7 I / gw8 I / gw9 I / gw10 I / gw11 I / gw12 I / gw13 I / gw14 I / gw15 I
gw0 [111] / gw1 [111] / gw2 [111] / gw3 [111] / gw4 [111] / gw5 [111] / gw6 [111] / gw7 [111] / gw8 [111] / gw9 [111] / gw10 [111] / gw11 [111] / gw12 [111] / gw13 [111] / gw14 [111] / gw15 [111]
...........s.................................ss..F.s..s.....s............ [ 64%]
...................................... [100%]
=================================== FAILURES ===================================
__________________ DeprecatedTestCase.test_deprecate_pybind11 __________________
[gw15] linux -- Python 3.8.11 /opt/conda/envs/myenv/bin/python3.8
self = <test_deprecated.DeprecatedTestCase testMethod=test_deprecate_pybind11>
def test_deprecate_pybind11(self):
def old(x):
"""Docstring"""
return x + 1
# Use an unusual category
> old = lsst.utils.deprecate_pybind11(
old, reason="For testing.", category=PendingDeprecationWarning)
tests/test_deprecated.py:34:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
python/lsst/utils/deprecated.py:72: in deprecate_pybind11
return deprecated.sphinx.deprecated(
/opt/conda/envs/myenv/lib/python3.8/site-packages/deprecated/classic.py:267: in deprecated
adapter = adapter_cls(**kwargs)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <deprecated.sphinx.SphinxAdapter object at 0x7f4d8dbdac10>
directive = 'deprecated', reason = 'For testing.', version = None, action = None
category = <class 'PendingDeprecationWarning'>, line_length = 70
def __init__(
self,
directive,
reason="",
version="",
action=None,
category=DeprecationWarning,
line_length=70,
):
"""
Construct a wrapper adapter.
:type directive: str
:param directive:
Sphinx directive: can be one of "versionadded", "versionchanged" or "deprecated".
:type reason: str
:param reason:
Reason message which documents the deprecation in your library (can be omitted).
:type version: str
:param version:
Version of your project which deprecates this feature.
If you follow the `Semantic Versioning <https://semver.org/>`_,
the version number has the format "MAJOR.MINOR.PATCH".
:type action: str
:param action:
A warning filter used to activate or not the deprecation warning.
Can be one of "error", "ignore", "always", "default", "module", or "once".
If ``None`` or empty, the the global filtering mechanism is used.
See: `The Warnings Filter`_ in the Python documentation.
:type category: type
:param category:
The warning category to use for the deprecation warning.
By default, the category class is :class:`~DeprecationWarning`,
you can inherit this class to define your own deprecation warning category.
:type line_length: int
:param line_length:
Max line length of the directive text. If non nul, a long text is wrapped in several lines.
"""
if not version:
# https://github.com/tantale/deprecated/issues/40
> raise ValueError("'version' argument is required in Sphinx directives")
E ValueError: 'version' argument is required in Sphinx directives
/opt/conda/envs/myenv/lib/python3.8/site-packages/deprecated/sphinx.py:89: ValueError
- generated xml file: /root/lsst_stack/stack/miniconda3-py38_4.9.2-0.6.0/EupsBuildDir/Linux64/utils-22.0.1+1a1dd69893/utils-22.0.1+1a1dd69893/tests/.tests/pytest-utils.xml -
---------- coverage: platform linux, python 3.8.11-final-0 -----------
Name Stmts Miss Branch BrPart Cover
---------------------------------------------------------------------------
python/lsst/__init__.py 3 0 0 0 100%
python/lsst/utils/__init__.py 9 0 0 0 100%
python/lsst/utils/backtrace/__init__.py 1 0 0 0 100%
python/lsst/utils/deprecated.py 17 5 0 0 71%
python/lsst/utils/doImport.py 30 2 8 0 95%
python/lsst/utils/get_caller_name.py 20 0 10 2 93%
python/lsst/utils/inheritDoc.py 9 8 2 0 9%
python/lsst/utils/tests.py 295 82 132 13 73%
python/lsst/utils/version.py 6 0 0 0 100%
python/lsst/utils/wrappers.py 142 16 86 15 86%
tests/import_test/__init__.py 0 0 0 0 100%
tests/import_test/two/three/fail.py 3 2 0 0 33%
tests/import_test/two/three/runtime.py 1 0 0 0 100%
tests/import_test/two/three/success.py 5 0 0 0 100%
tests/test_backtrace.py 24 2 4 2 86%
tests/test_cache.py 68 13 18 3 79%
tests/test_decorators.py 33 4 6 1 87%
tests/test_deprecated.py 14 6 2 1 56%
tests/test_doImport.py 49 1 2 1 96%
tests/test_executables.py 18 5 2 1 70%
tests/test_getPackageDir.py 22 2 2 1 88%
tests/test_getTempFilePath.py 90 2 2 1 97%
tests/test_get_caller_name.py 37 2 2 1 92%
tests/test_ordering.py 17 3 2 1 79%
tests/test_pySharedPtr.py 39 3 2 1 90%
tests/test_pybind11.py 124 23 22 1 82%
tests/test_utils.py 167 6 4 2 95%
tests/test_wrappers.py 338 6 10 3 97%
---------------------------------------------------------------------------
TOTAL 1581 193 318 50 86%
Coverage HTML written to dir tests/.tests/pytest-utils.xml-htmlcov
Coverage XML written to file tests/.tests/pytest-utils.xml-cov-utils.xml
=========================== short test summary info ============================
FAILED tests/test_deprecated.py::DeprecatedTestCase::test_deprecate_pybind11
=================== 1 failed, 104 passed, 6 skipped in 4.35s ===================
Global pytest run: failed with 1
Failed test output:
Global pytest output is in /root/lsst_stack/stack/miniconda3-py38_4.9.2-0.6.0/EupsBuildDir/Linux64/utils-22.0.1+1a1dd69893/utils-22.0.1+1a1dd69893/tests/.tests/pytest-utils.xml.failed
The following tests failed:
/root/lsst_stack/stack/miniconda3-py38_4.9.2-0.6.0/EupsBuildDir/Linux64/utils-22.0.1+1a1dd69893/utils-22.0.1+1a1dd69893/tests/.tests/pytest-utils.xml.failed
1 tests failed
scons: *** [checkTestStatus] Error 1
scons: building terminated because of errors.
# conda list | grep rubin
rubin-env 0.4.3 ha770c72_0 conda-forge