./devel/py-test, Python testing tool

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: CURRENT, Version: 6.2.5nb2, Package name: py39-test-6.2.5nb2, Maintainer: pkgsrc-users

The pytest framework makes it easy to write small tests, yet scales to support
complex functional testing for applications and libraries.

Features
* Detailed info on failing assert statements (no need to remember self.assert*
names);
* Auto-discovery of test modules and functions;
* Modular fixtures for managing small or parametrized long-lived test
resources;
* Can run unittest (including trial) and nose test suites out of the box;
* Python 3.5+ and PyPy 3;
* Rich plugin architecture, with over 315+ external plugins and thriving
community;


Required to run:
[textproc/py-expat] [devel/py-setuptools] [devel/py-py] [devel/py-more-itertools] [devel/py-pluggy] [devel/py-attrs] [devel/py-wcwidth] [devel/py-packaging] [lang/python37] [devel/py-importlib-metadata]

Required to build:
[pkgtools/cwrappers] [devel/py-setuptools_scm]

Master sites:

Filesize: 1092.5 KB

Version history: (Expand)


CVS history: (Expand)


   2022-01-05 16:41:32 by Thomas Klausner | Files touched by this commit (289)
Log message:
python: egg.mk: add USE_PKG_RESOURCES flag

This flag should be set for packages that import pkg_resources
and thus need setuptools after the build step.

Set this flag for packages that need it and bump PKGREVISION.
   2022-01-04 21:55:40 by Thomas Klausner | Files touched by this commit (1595)
Log message:
*: bump PKGREVISION for egg.mk users

They now have a tool dependency on py-setuptools instead of a DEPENDS
   2021-10-26 12:20:11 by Nia Alarie | Files touched by this commit (3016)
Log message:
archivers: Replace RMD160 checksums with BLAKE2s checksums

All checksums have been double-checked against existing RMD160 and
SHA512 hashes

Could not be committed due to merge conflict:
devel/py-traitlets/distinfo

The following distfiles were unfetchable (note: some may be only fetched
conditionally):

./devel/pvs/distinfo pvs-3.2-solaris.tgz
./devel/eclipse/distinfo eclipse-sourceBuild-srcIncluded-3.0.1.zip
   2021-10-07 15:44:44 by Nia Alarie | Files touched by this commit (3017)
Log message:
devel: Remove SHA1 hashes for distfiles
   2021-05-05 06:48:27 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-test: updated to 6.2.4

pytest 6.2.4
Bug Fixes
* Fixed assertion rewriting on Python 3.10.
   2021-04-05 10:16:16 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-test: updated to 6.2.3

pytest 6.2.3 (2021-04-03)
=========================

Bug Fixes
---------

- pytest used to create directories under ``/tmp`` with world-readable
  permissions. This means that any user in the system was able to read
  information written by tests in temporary directories (such as those created by
  the ``tmp_path``/``tmpdir`` fixture). Now the directories are created with
  private permissions.

  pytest used silenty use a pre-existing ``/tmp/pytest-of-<username>`` \ 
directory,
  even if owned by another user. This means another user could pre-create such a
  directory and gain control of another user's temporary directory. Now such a
  condition results in an error.
   2021-01-26 07:13:59 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-test: updated to 6.2.2

pytest 6.2.2

Bug Fixes
- Fixed "(<Skipped instance>)" being shown as a skip reason in \ 
the verbose test summary line when the reason is empty.
- Fix the ``faulthandler`` plugin for occasions when running with \ 
``twisted.logger`` and using ``pytest --capture=no``.
   2020-12-16 14:15:12 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-test: updated to 6.2.1

pytest 6.2.1

Bug Fixes
Fixed bug where ImportPathMismatchError would be raised for files compiled in \ 
the host and loaded later from an UNC mounted path (Windows).

Fixed regression in approx: in 6.2.0 approx no longer raises TypeError when \ 
dealing with non-numeric types, falling back to normal comparison. Before 6.2.0, \ 
array types like tf.DeviceArray fell through to the scalar case, and happened to \ 
compare correctly to a scalar if they had only one element. After 6.2.0, these \ 
types began failing, because they inherited neither from standard Python number \ 
hierarchy nor from numpy.ndarray.

approx now converts arguments to numpy.ndarray if they expose the array protocol \ 
and are not scalars. This treats array-like objects like numpy arrays, \ 
regardless of size.