1
0
forked from pool/python-pytest

9 Commits

Author SHA256 Message Date
f296985e82 Accepting request 1271899 from devel:languages:python:pytest
- Update to 8.3.5
  * Bug fixes
    - #11777: Fixed issue where sequences were still being shortened
      even with -vv verbosity.
    - #12888: Fixed broken input when using Python 3.13+ and a libedit
      build of Python, such as on macOS or with uv-managed Python
      binaries from the python-build-  standalone project.
      This could manifest e.g. by a broken prompt when using Pdb,
      or seeing empty inputs with manual usage of input() and
      suspended capturing.
    - #13026: Fixed AttributeError{.interpreted-text role="class"}
      crash when using --import-mode=importlib when top-level directory
      same name as another module of   the standard library.
    - #13053: Fixed a regression in pytest 8.3.4 where, when using
      --import-mode=importlib, a directory containing py file with
      the same name would cause an ImportError
    - #13083: Fixed issue where pytest could crash if one of the
      collected directories got removed during collection.
  * Improved documentation
    - #12842: Added dedicated page about using types with pytest.
      See types{.interpreted-text role="ref"} for detailed usage.
  * Contributor-facing changes
    - #13112: Fixed selftest failures in test_terminal.py with Pygments >= 2.19.0
    - #13256: Support for Towncrier versions released in 2024 has been re-enabled
      when building Sphinx docs -- by webknjaz{.interpreted-text role="user"}.
- Drop pygments.patch, because now in upstream.

OBS-URL: https://build.opensuse.org/request/show/1271899
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest?expand=0&rev=89
2025-04-23 13:18:19 +00:00
abf0be4b2e I give up, there's no way to verify this anyway
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest?expand=0&rev=151
2025-04-22 14:07:00 +00:00
370946acf0 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest?expand=0&rev=150 2025-04-22 12:53:01 +00:00
b63371537e - Update to 8.3.5
* Bug fixes
    - #11777: Fixed issue where sequences were still being shortened
      even with -vv verbosity.
    - #12888: Fixed broken input when using Python 3.13+ and a libedit
      build of Python, such as on macOS or with uv-managed Python
      binaries from the python-build-  standalone project.
      This could manifest e.g. by a broken prompt when using Pdb,
      or seeing empty inputs with manual usage of input() and
      suspended capturing.
    - #13026: Fixed AttributeError{.interpreted-text role="class"}
      crash when using --import-mode=importlib when top-level directory
      same name as another module of   the standard library.
    - #13053: Fixed a regression in pytest 8.3.4 where, when using
      --import-mode=importlib, a directory containing py file with
      the same name would cause an ImportError
    - #13083: Fixed issue where pytest could crash if one of the
      collected directories got removed during collection.
  * Improved documentation
    - #12842: Added dedicated page about using types with pytest.
      See types{.interpreted-text role="ref"} for detailed usage.
  * Contributor-facing changes
    - #13112: Fixed selftest failures in test_terminal.py with Pygments >= 2.19.0
    - #13256: Support for Towncrier versions released in 2024 has been re-enabled
      when building Sphinx docs -- by webknjaz{.interpreted-text role="user"}.
- Drop pygments.patch, because now in upstream.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest?expand=0&rev=149
2025-04-22 12:41:13 +00:00
3c55f3803f Accepting request 1235856 from devel:languages:python:pytest
OBS-URL: https://build.opensuse.org/request/show/1235856
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest?expand=0&rev=88
2025-01-21 20:09:39 +00:00
0b41864294 - Add upstream pygments.patch to fix compatibility with new Pygments
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest?expand=0&rev=147
2025-01-08 09:43:44 +00:00
626c961f3f - update to 8.3.4:
* #12592: Fixed :class:`KeyError` crash when using --import-
    mode=importlib in a directory layout where a directory
    contains a child directory with the same name.
  * #12818: Assertion rewriting now preserves the source ranges
    of the original instructions, making it play well with tools
    that deal with the AST, like executing.
  * #12849: ANSI escape codes for colored output now handled
    correctly in :func:`pytest.fail` with pytrace=False.
  * #9353: :func:`pytest.approx` now uses strict equality when
    given booleans.
  * #10558: Fix ambiguous docstring of
    :func:`pytest.Config.getoption`.
  * #10829: Improve documentation on the current handling of the
    --basetemp option and its lack of retention functionality
    (:ref:`temporary directory location and retention`).
  * #12866: Improved cross-references concerning the
    :fixture:`recwarn` fixture.
  * #12966: Clarify :ref:`filterwarnings` docs on filter
    precedence/order when using multiple
    :ref:`@pytest.mark.filterwarnings <pytest.mark.filterwarnings
    ref>` marks.
  * #12497: Fixed two failing pdb-related tests on Python 3.13.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest?expand=0&rev=146
2024-12-05 18:04:11 +00:00
1d1319161a Accepting request 1217929 from devel:languages:python:pytest
- update to 8.3.3:
  * #12446: Avoid calling @property (and other instance
    descriptors) during fixture discovery -- by :user:`asottile`
  * #12659: Fixed the issue of not displaying assertion failure
    differences when using the parameter --import-mode=importlib
    in pytest>=8.1.
  * #12667: Fixed a regression where type change in
    ExceptionInfo.errisinstance caused mypy to fail.
  * #12744: Fixed typing compatibility with Python 3.9 or less --
    replaced typing.Self with typing_extensions.Self -- by
    :user:`Avasam`
  * #12745: Fixed an issue with backslashes being incorrectly
    converted in nodeid paths on Windows, ensuring consistent
    path handling across environments.
  * #6682: Fixed bug where the verbosity levels where not being
    respected when printing the "msg" part of failed assertion
    (as in assert condition, msg).
  * #9422: Fix bug where disabling the terminal plugin via -p
    no:terminal would cause crashes related to missing the
    verbose option. -- by :user:`GTowers1`
  * #12663: Clarify that the pytest_deselected hook should be
    called from pytest_collection_modifyitems hook
    implementations when items are deselected.
  * #12678: Remove erroneous quotes from
    tmp_path_retention_policy example in docs.
  * #12769: Fix typos discovered by codespell and add codespell
    to pre-commit hooks.

OBS-URL: https://build.opensuse.org/request/show/1217929
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest?expand=0&rev=87
2024-10-25 17:18:44 +00:00
996feceb5e - update to 8.3.3:
* #12446: Avoid calling @property (and other instance
    descriptors) during fixture discovery -- by :user:`asottile`
  * #12659: Fixed the issue of not displaying assertion failure
    differences when using the parameter --import-mode=importlib
    in pytest>=8.1.
  * #12667: Fixed a regression where type change in
    ExceptionInfo.errisinstance caused mypy to fail.
  * #12744: Fixed typing compatibility with Python 3.9 or less --
    replaced typing.Self with typing_extensions.Self -- by
    :user:`Avasam`
  * #12745: Fixed an issue with backslashes being incorrectly
    converted in nodeid paths on Windows, ensuring consistent
    path handling across environments.
  * #6682: Fixed bug where the verbosity levels where not being
    respected when printing the "msg" part of failed assertion
    (as in assert condition, msg).
  * #9422: Fix bug where disabling the terminal plugin via -p
    no:terminal would cause crashes related to missing the
    verbose option. -- by :user:`GTowers1`
  * #12663: Clarify that the pytest_deselected hook should be
    called from pytest_collection_modifyitems hook
    implementations when items are deselected.
  * #12678: Remove erroneous quotes from
    tmp_path_retention_policy example in docs.
  * #12769: Fix typos discovered by codespell and add codespell
    to pre-commit hooks.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest?expand=0&rev=144
2024-10-24 07:24:23 +00:00
4 changed files with 99 additions and 11 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:c132345d12ce551242c87269de812483f5bcc87cdbb4722e48487ba194f9fdce
size 1439314

BIN
pytest-8.3.5.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@@ -1,3 +1,96 @@
-------------------------------------------------------------------
Tue Apr 22 12:27:46 UTC 2025 - ecsos <ecsos@opensuse.org>
- Update to 8.3.5
* Bug fixes
- #11777: Fixed issue where sequences were still being shortened
even with -vv verbosity.
- #12888: Fixed broken input when using Python 3.13+ and a libedit
build of Python, such as on macOS or with uv-managed Python
binaries from the python-build- standalone project.
This could manifest e.g. by a broken prompt when using Pdb,
or seeing empty inputs with manual usage of input() and
suspended capturing.
- #13026: Fixed AttributeError{.interpreted-text role="class"}
crash when using --import-mode=importlib when top-level directory
same name as another module of the standard library.
- #13053: Fixed a regression in pytest 8.3.4 where, when using
--import-mode=importlib, a directory containing py file with
the same name would cause an ImportError
- #13083: Fixed issue where pytest could crash if one of the
collected directories got removed during collection.
* Improved documentation
- #12842: Added dedicated page about using types with pytest.
See types{.interpreted-text role="ref"} for detailed usage.
* Contributor-facing changes
- #13112: Fixed selftest failures in test_terminal.py with Pygments >= 2.19.0
- #13256: Support for Towncrier versions released in 2024 has been re-enabled
when building Sphinx docs -- by webknjaz{.interpreted-text role="user"}.
- Drop pygments.patch, because now in upstream.
-------------------------------------------------------------------
Tue Jan 7 14:12:55 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Add upstream pygments.patch to fix compatibility with new Pygments
-------------------------------------------------------------------
Thu Dec 5 18:03:42 UTC 2024 - Dirk Müller <dmueller@suse.com>
- update to 8.3.4:
* #12592: Fixed :class:`KeyError` crash when using --import-
mode=importlib in a directory layout where a directory
contains a child directory with the same name.
* #12818: Assertion rewriting now preserves the source ranges
of the original instructions, making it play well with tools
that deal with the AST, like executing.
* #12849: ANSI escape codes for colored output now handled
correctly in :func:`pytest.fail` with pytrace=False.
* #9353: :func:`pytest.approx` now uses strict equality when
given booleans.
* #10558: Fix ambiguous docstring of
:func:`pytest.Config.getoption`.
* #10829: Improve documentation on the current handling of the
--basetemp option and its lack of retention functionality
(:ref:`temporary directory location and retention`).
* #12866: Improved cross-references concerning the
:fixture:`recwarn` fixture.
* #12966: Clarify :ref:`filterwarnings` docs on filter
precedence/order when using multiple
:ref:`@pytest.mark.filterwarnings <pytest.mark.filterwarnings
ref>` marks.
* #12497: Fixed two failing pdb-related tests on Python 3.13.
-------------------------------------------------------------------
Thu Oct 24 07:24:14 UTC 2024 - Dirk Müller <dmueller@suse.com>
- update to 8.3.3:
* #12446: Avoid calling @property (and other instance
descriptors) during fixture discovery -- by :user:`asottile`
* #12659: Fixed the issue of not displaying assertion failure
differences when using the parameter --import-mode=importlib
in pytest>=8.1.
* #12667: Fixed a regression where type change in
ExceptionInfo.errisinstance caused mypy to fail.
* #12744: Fixed typing compatibility with Python 3.9 or less --
replaced typing.Self with typing_extensions.Self -- by
:user:`Avasam`
* #12745: Fixed an issue with backslashes being incorrectly
converted in nodeid paths on Windows, ensuring consistent
path handling across environments.
* #6682: Fixed bug where the verbosity levels where not being
respected when printing the "msg" part of failed assertion
(as in assert condition, msg).
* #9422: Fix bug where disabling the terminal plugin via -p
no:terminal would cause crashes related to missing the
verbose option. -- by :user:`GTowers1`
* #12663: Clarify that the pytest_deselected hook should be
called from pytest_collection_modifyitems hook
implementations when items are deselected.
* #12678: Remove erroneous quotes from
tmp_path_retention_policy example in docs.
* #12769: Fix typos discovered by codespell and add codespell
to pre-commit hooks.
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Aug 12 17:34:45 UTC 2024 - Dirk Müller <dmueller@suse.com> Mon Aug 12 17:34:45 UTC 2024 - Dirk Müller <dmueller@suse.com>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-pytest # spec file for package python-pytest
# #
# Copyright (c) 2024 SUSE LLC # Copyright (c) 2025 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -33,7 +33,7 @@
%{?sle15_python_module_pythons} %{?sle15_python_module_pythons}
Name: python-pytest%{psuffix} Name: python-pytest%{psuffix}
Version: 8.3.2 Version: 8.3.5
Release: 0 Release: 0
Summary: Simple powerful testing with Python Summary: Simple powerful testing with Python
License: MIT License: MIT
@@ -43,19 +43,14 @@ BuildRequires: %{python_module base >= 3.8}
BuildRequires: %{python_module pip} BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools_scm >= 6} BuildRequires: %{python_module setuptools_scm >= 6}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module tomli >= 1 if %python-base < 3.11}
BuildRequires: %{python_module wheel} BuildRequires: %{python_module wheel}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros >= 20210929 BuildRequires: python-rpm-macros >= 20210929
Requires: python-attrs >= 19.2.0
%if 0%{?python_version_nodots} < 311
Requires: python-exceptiongroup >= 1.0.0
%endif
Requires: python-iniconfig Requires: python-iniconfig
Requires: python-packaging Requires: python-packaging
Requires: python-pluggy >= 1.5 Requires: python-pluggy >= 1.5
Requires: python-setuptools Requires: python-setuptools
Requires: (python-tomli >= 1 if python-base < 3.11) Recommends: python-attrs >= 19.2.0
%if %{with libalternatives} %if %{with libalternatives}
Requires: alts Requires: alts
BuildRequires: alts BuildRequires: alts