Revisions of python-pytest

Dirk Mueller's avatar Dirk Mueller (dirkmueller) committed (revision 116)
Dirk Mueller's avatar Dirk Mueller (dirkmueller) committed (revision 115)
Dirk Mueller's avatar Dirk Mueller (dirkmueller) committed (revision 114)
- update to 7.3.1:
  * Python 3.12 support
- update to 7.3.0:
  *  --log-disable CLI option added to disable individual loggers.
  * Added tmp_path_retention_count and tmp_path_retention_policy
    configuration options to control how directories created by
    the tmp_path fixture are kept.
  * For list of omprovements and bugfixes, please read
    https://docs.pytest.org/en/stable/changelog.html#pytest-7-3-0-2023-04-08
Dirk Mueller's avatar Dirk Mueller (dirkmueller) committed (revision 113)
- update to 7.2.2:
  * Fixed :func:`pytest.approx`
    handling of dictionaries containing one or more values of
    `0.0`.
  * Fixed crash if `--cache-show` and `--help` are passed at the
    same time.
  * Fixed bug where a fixture method named ``teardown`` would
    be called as part of ``nose`` teardown stage.
  * Fixed crash if ``--fixtures`` and ``--help`` are passed
    at the same time.
  * Fixed :py:func:`pytest.raises` to
    return a 'ContextManager' so that type-checkers could narrow
    :code:`pytest.raises(...) if ... else nullcontext()` down to
    'ContextManager' rather than 'object'.
  * Fix 'importlib.abc.TraversableResources' deprecation warning in
    Python 3.12.
  * If a test is skipped from inside a fixture, the test summary
    now shows the test location instead of the fixture location.
  * Fix a race condition when creating junitxml reports,
    which could occur when multiple instances of pytest execute
    in parallel.
  * Fix a race condition when
    creating or updating the stepwise plugin's cache, which could
    occur when multiple xdist worker nodes try to simultaneously
    update the stepwise plugin's cache.
- drop fix-test-raising-repr.patch, fix-tests-pygments-2.14.0.patch: 
  merged upstream
buildservice-autocommit accepted request 1082443 from Dirk Mueller's avatar Dirk Mueller (dirkmueller) (revision 112)
baserev update by copy to link target
Dirk Mueller's avatar Dirk Mueller (dirkmueller) accepted request 1082404 from Dirk Mueller's avatar Dirk Mueller (dirkmueller) (revision 111)
SR for python stack proposal
buildservice-autocommit accepted request 1072266 from Daniel Garcia's avatar Daniel Garcia (dgarcia) (revision 110)
baserev update by copy to link target
Daniel Garcia's avatar Daniel Garcia (dgarcia) committed (revision 109)
- Disable broken tests with latest setuptools,
  gh#pytest-dev/pytest#10815
buildservice-autocommit accepted request 1056778 from Markéta Machová's avatar Markéta Machová (mcalabkova) (revision 108)
baserev update by copy to link target
buildservice-autocommit accepted request 1040176 from Daniel Garcia's avatar Daniel Garcia (dgarcia) (revision 107)
baserev update by copy to link target
Daniel Garcia's avatar Daniel Garcia (dgarcia) committed (revision 106)
- Add fix-tests-pygments-2.14.0.patch to make it work with pygments 2.14.0
  gh#pytest-dev/pytest#10632
Daniel Garcia's avatar Daniel Garcia (dgarcia) committed (revision 105)
- Add fix-test-raising-repr.patch gh#pytest-dev/pytest#10473, this make it
  compatible with latest release of python-exceptiongroup
Daniel Garcia's avatar Daniel Garcia (dgarcia) committed (revision 104)
- Remove python_module macro definition
- Update to 7.2.0:
  # Deprecations
  - #10012: Update pytest.PytestUnhandledCoroutineWarning{.interpreted-text
    role="class"} to a deprecation; it will raise an error in pytest 8.
  - #10396: pytest no longer depends on the py library. pytest provides a
    vendored copy of py.error and py.path modules but will use the py library
    if it is installed. If you need other py.* modules, continue to install the
    deprecated py library separately, otherwise it can usually be removed as a
    dependency.
  - #4562: Deprecate configuring hook specs/impls using attributes/marks.
  - Instead use :pypytest.hookimpl{.interpreted-text role="func"} and
    :pypytest.hookspec{.interpreted-text role="func"}.
    For more details, see the docs
    <legacy-path-hooks-deprecated>{.interpreted-text role="ref"}.
  - #9886: The functionality for running tests written for nose has been
    officially deprecated.
    This includes:
     * Plain setup and teardown functions and methods: this might catch users
       by surprise, as setup() and teardown() are not pytest idioms, but part
       of the nose support.
     * Setup/teardown using the @with_setup decorator.
    For more details, consult the deprecation docs
    <nose-deprecation>{.interpreted-text role="ref"}.
  # Features
  -  #9897: Added shell-style wildcard support to testpaths.
  # Improvements
  - #10218: @pytest.mark.parametrize() (and similar functions) now accepts any
    Sequence[str] for the argument names, instead of just list[str] and
    tuple[str, ...].
buildservice-autocommit accepted request 993543 from Matej Cepl's avatar Matej Cepl (mcepl) (revision 103)
baserev update by copy to link target
Matej Cepl's avatar Matej Cepl (mcepl) accepted request 993296 from Benjamin Greiner's avatar Benjamin Greiner (bnavigator) (revision 102)
- Update to 7.1.2
  * #9726: An unnecessary numpy import inside
    pytest.approx{.interpreted-text role="func"} was removed.
  * #9820: Fix comparison of dataclasses with InitVar.
  * #9869: Increase stacklevel for the NODE_CTOR_FSPATH_ARG
    deprecation to point to the user's code, not pytest.
  * #9871: Fix a bizarre (and fortunately rare) bug where the
    [temp_path]{.title-ref} fixture could raise an internal error
    while attempting to get the current user's username.
buildservice-autocommit accepted request 965105 from Matej Cepl's avatar Matej Cepl (mcepl) (revision 101)
baserev update by copy to link target
Matej Cepl's avatar Matej Cepl (mcepl) accepted request 965098 from Benjamin Greiner's avatar Benjamin Greiner (bnavigator) (revision 100)
- Update to 7.1.1
  * #9767: Fixed a regression in pytest 7.1.0 where some
    conftest.py files outside of the source tree (e.g. in the
   [site-packages]{.title-ref} directory) were not picked up.
- python-pytest5 is gone. Remove the libalts stopgap
- Update to 7.1.0
  * Big changelog for 7.x series, see
    https://docs.pytest.org/en/7.1.x/changelog.html for details 
- Breaking changes:
  * #8838: As per our policy, the following features have been
    deprecated in the 6.X series and are now removed:
    + pytest._fillfuncargs function.
    + pytest_warning_captured hook - use pytest_warning_recorded
      instead.
    + -k -foobar syntax - use -k 'not foobar' instead.
    + -k foobar: syntax.
    * pytest.collect module - import from pytest directly.
  * #9437: Dropped support for Python 3.6, which reached
    end-of-life at 2021-12-23.
  * #7259: The Node.reportinfo() function first return value type
    has been expanded from py.path.local | str to os.PathLike[str]
    | str.
    Most plugins which refer to reportinfo() only define it as part
    of a custom pytest.Item implementation. Since py.path.local is
    a os.PathLike[str], these plugins are unaffacted.
    Plugins and users which call reportinfo(), use the first return
    value and interact with it as a py.path.local, would need to
    adjust by calling py.path.local(fspath). Although preferably,
    avoid the legacy py.path.local and use pathlib.Path, or use
    item.location or item.path, instead.
    Note: pytest was not able to provide a deprecation period for
    this change.
  * #8246: --version now writes version information to stdout
    rather than stderr.
  * #8733: Drop a workaround for pyreadline that made it work with
    --pdb. The workaround was introduced in #1281 in 2015, however
    since then pyreadline seems to have gone unmaintained, is
    generating warnings, and will stop working on Python 3.10.
  * #9061: Using pytest.approx() in a boolean context now raises an
    error hinting at the proper usage.
    It is apparently common for users to mistakenly use
    pytest.approx like this:
        assert pytest.approx(actual, expected)
    
    While the correct usage is:
        assert actual == pytest.approx(expected) 
        
    The new error message helps catch those mistakes.
  * #9277: The pytest.Instance collector type has been removed.
    Importing pytest.Instance or _pytest.python.Instance returns a
    dummy type and emits a deprecation warning. See The
    pytest.Instance collector for details.
  * If you have concerns about the removal of a specific feature,
    please add a comment to issue #9308.
- Drop patches
  * pytest-pr8664-py3.10-test_trial_error-fail.patch
  * pytest-pr9173-importlib-py310.patch
  * pytest-pr9417-py3.10.1-fail.patch
Matej Cepl's avatar Matej Cepl (mcepl) accepted request 942970 from Benjamin Greiner's avatar Benjamin Greiner (bnavigator) (revision 99)
- Add patch pytest-pr9173-importlib-py310.patch
  * gh#pytest-dev/pytest#9173
  * refresh pytest-pr9417-py3.10.1-fail.patch
  * fixes asdf related errors: gh#asdf-format/asdf#1027
Matej Cepl's avatar Matej Cepl (mcepl) committed (revision 98)
- Using URLs for Patches looks like a great idea, but it is too
  unstable. Please, don't.
Steve Kowalik's avatar Steve Kowalik (StevenK) accepted request 941512 from Benjamin Greiner's avatar Benjamin Greiner (bnavigator) (revision 97)
- Add pytest-pr8664-py3.10-test_trial_error-fail.patch
  * gh#pytest-dev/pytest#8664
- Add pytest-pr9417-py3.10.1-fail.patch
  * gh#pytest-dev/pytest#9417
- Disable libalternatives usage until all python-pytest* packages
  are on the same page (see sr#926611)
Displaying revisions 21 - 40 of 136
openSUSE Build Service is sponsored by