pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/devel/py-test



Module Name:    pkgsrc
Committed By:   adam
Date:           Mon Apr 17 08:17:42 UTC 2023

Modified Files:
        pkgsrc/devel/py-test: Makefile distinfo

Log Message:
py-test: updated to 7.3.1

pytest 7.3.1 (2023-04-14)
=========================

Improvements
------------
- Python 3.12 support: fixed ``RuntimeError: TestResult has no addDuration method`` when running ``unittest`` tests.

- Python 3.12 support: fixed ``shutil.rmtree(onerror=...)`` deprecation warning when using :fixture:`tmp_path`.

Bug Fixes
---------
- Fixed performance regression related to :fixture:`tmp_path` and the new :confval:`tmp_path_retention_policy` option.

- Fix crash ``INTERNALERROR IndexError: list index out of range`` which happens when displaying an exception where all entries are hidden.
  This reverts the change "Correctly handle ``__tracebackhide__`` for chained exceptions." introduced in version 7.3.0.

pytest 7.3.0 (2023-04-08)
=========================

Features
--------
- Test methods decorated with ``@classmethod`` can now be discovered as tests, following the same rules as normal methods. This fills the gap that static methods were discoverable as tests but not 
class methods.

- :confval:`console_output_style` now supports ``progress-even-when-capture-no`` to force the use of the progress output even when capture is disabled. This is useful in large test suites where 
capture may have significant performance impact.

- ``--log-disable`` CLI option added to disable individual loggers.

- Added :confval:`tmp_path_retention_count` and :confval:`tmp_path_retention_policy` configuration options to control how directories created by the :fixture:`tmp_path` fixture are kept.

Improvements
------------
- If multiple errors are raised in teardown, we now re-raise an ``ExceptionGroup`` of them instead of discarding all but the last.

- Allow ``-p`` arguments to include spaces (eg: ``-p no:logging`` instead of
  ``-pno:logging``). Mostly useful in the ``addopts`` section of the configuration
  file.

- Added ``start`` and ``stop`` timestamps to ``TestReport`` objects.

- Split the report header for ``rootdir``, ``config file`` and ``testpaths`` so each has its own line.

- pytest should no longer crash on AST with pathological position attributes, for example testing AST produced by `Hylang <https://github.com/hylang/hy>__`.

- The full output of a test is no longer truncated if the truncation message would be longer than
  the hidden text. The line number shown has also been fixed.

Bug Fixes
---------
- The assertion rewriting mechanism now works correctly when assertion expressions contain the walrus operator.

- Fixed :fixture:`tmp_path` fixture always raising :class:`OSError` on ``emscripten`` platform due to missing :func:`os.getuid`.

- Correctly handle ``__tracebackhide__`` for chained exceptions.
  NOTE: This change was reverted in version 7.3.1.

Improved Documentation
----------------------
- Fixed the minimal example in :ref:`goodpractices`: ``pip install -e .`` requires a ``version`` entry in ``pyproject.toml`` to run successfully.

Trivial/Internal Changes
------------------------
- pytest no longer directly depends on the `attrs <https://www.attrs.org/en/stable/>`__ package. While
  we at pytest all love the package dearly and would like to thank the ``attrs`` team for many years of cooperation and support,
  it makes sense for ``pytest`` to have as little external dependencies as possible, as this helps downstream projects.
  With that in mind, we have replaced the pytest's limited internal usage to use the standard library's ``dataclasses`` instead.

  Nice diffs for ``attrs`` classes are still supported though.


To generate a diff of this commit:
cvs rdiff -u -r1.113 -r1.114 pkgsrc/devel/py-test/Makefile
cvs rdiff -u -r1.99 -r1.100 pkgsrc/devel/py-test/distinfo

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/devel/py-test/Makefile
diff -u pkgsrc/devel/py-test/Makefile:1.113 pkgsrc/devel/py-test/Makefile:1.114
--- pkgsrc/devel/py-test/Makefile:1.113 Wed Mar 29 09:34:09 2023
+++ pkgsrc/devel/py-test/Makefile       Mon Apr 17 08:17:42 2023
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.113 2023/03/29 09:34:09 wiz Exp $
+# $NetBSD: Makefile,v 1.114 2023/04/17 08:17:42 adam Exp $
 
-DISTNAME=      pytest-7.2.2
+DISTNAME=      pytest-7.3.1
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME:S/py//}
 CATEGORIES=    devel python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=p/pytest/}
@@ -13,12 +13,12 @@ LICENSE=    mit
 TOOL_DEPENDS+= ${PYPKGPREFIX}-setuptools-[0-9]*:../../devel/py-setuptools
 TOOL_DEPENDS+= ${PYPKGPREFIX}-wheel-[0-9]*:../../devel/py-wheel
 TOOL_DEPENDS+= ${PYPKGPREFIX}-setuptools_scm-[0-9]*:../../devel/py-setuptools_scm
-DEPENDS+=      ${PYPKGPREFIX}-attrs>=19.2.0:../../devel/py-attrs
 DEPENDS+=      ${PYPKGPREFIX}-expat-[0-9]*:../../textproc/py-expat
 DEPENDS+=      ${PYPKGPREFIX}-iniconfig-[0-9]*:../../devel/py-iniconfig
 DEPENDS+=      ${PYPKGPREFIX}-packaging-[0-9]*:../../devel/py-packaging
 DEPENDS+=      ${PYPKGPREFIX}-pluggy>=0.12:../../devel/py-pluggy
 TEST_DEPENDS+= ${PYPKGPREFIX}-argcomplete-[0-9]*:../../devel/py-argcomplete
+TEST_DEPENDS+= ${PYPKGPREFIX}-attrs>=19.2.0:../../devel/py-attrs
 TEST_DEPENDS+= ${PYPKGPREFIX}-hypothesis>=3.56:../../devel/py-hypothesis
 TEST_DEPENDS+= ${PYPKGPREFIX}-mock-[0-9]*:../../devel/py-mock
 TEST_DEPENDS+= ${PYPKGPREFIX}-nose-[0-9]*:../../devel/py-nose

Index: pkgsrc/devel/py-test/distinfo
diff -u pkgsrc/devel/py-test/distinfo:1.99 pkgsrc/devel/py-test/distinfo:1.100
--- pkgsrc/devel/py-test/distinfo:1.99  Tue Mar  7 18:58:03 2023
+++ pkgsrc/devel/py-test/distinfo       Mon Apr 17 08:17:42 2023
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.99 2023/03/07 18:58:03 adam Exp $
+$NetBSD: distinfo,v 1.100 2023/04/17 08:17:42 adam Exp $
 
-BLAKE2s (pytest-7.2.2.tar.gz) = c77b7ef8bd13f1148fbcf3876616fef5cd95c8b1d0749bc7db3be833312ddc73
-SHA512 (pytest-7.2.2.tar.gz) = 100e06a9eeb9f3f5fc4f61ab10cd83a80280dc411fddde9361f101b77e69f8600d2f4846f8611a47f441724cf8ffe6bc2cae4b75703f9b48cacf0eee83eaf3b3
-Size (pytest-7.2.2.tar.gz) = 1320028 bytes
+BLAKE2s (pytest-7.3.1.tar.gz) = a234d4d7946bb0cd5978c9f2a9cbf21a9e3e8e1b0edf7d09f67767fbe0caa4b5
+SHA512 (pytest-7.3.1.tar.gz) = e6c8fcf1449f5e09e33c01ec2ade8812ceb13440324179288b8ca0eeaaffed1e581a65c8acf4c28efe61c19a067e7ceddccc45d8a1582c89259d53fee25ab253
+Size (pytest-7.3.1.tar.gz) = 1336938 bytes



Home | Main Index | Thread Index | Old Index