pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/py-test Update to 2.7.0:



details:   https://anonhg.NetBSD.org/pkgsrc/rev/d97918f5711e
branches:  trunk
changeset: 649337:d97918f5711e
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Thu Apr 02 22:40:44 2015 +0000

description:
Update to 2.7.0:

2.7.0 (compared to 2.6.4)
-----------------------------

- fix issue435: make reload() work when assert rewriting is active.
  Thanks Daniel Hahler.

- fix issue616: conftest.py files and their contained fixutres are now
  properly considered for visibility, independently from the exact
  current working directory and test arguments that are used.
  Many thanks to Eric Siegerman and his PR235 which contains
  systematic tests for conftest visibility and now passes.
  This change also introduces the concept of a ``rootdir`` which
  is printed as a new pytest header and documented in the pytest
  customize web page.

- change reporting of "diverted" tests, i.e. tests that are collected
  in one file but actually come from another (e.g. when tests in a test class
  come from a base class in a different file).  We now show the nodeid
  and indicate via a postfix the other file.

- add ability to set command line options by environment variable PYTEST_ADDOPTS.

- added documentation on the new pytest-dev teams on bitbucket and
  github.  See https://pytest.org/latest/contributing.html .
  Thanks to Anatoly for pushing and initial work on this.

- fix issue650: new option ``--docttest-ignore-import-errors`` which
  will turn import errors in doctests into skips.  Thanks Charles Cloud
  for the complete PR.

- fix issue655: work around different ways that cause python2/3
  to leak sys.exc_info into fixtures/tests causing failures in 3rd party code

- fix issue615: assertion re-writing did not correctly escape % signs
  when formatting boolean operations, which tripped over mixing
  booleans with modulo operators.  Thanks to Tom Viner for the report,
  triaging and fix.

- implement issue351: add ability to specify parametrize ids as a callable
  to generate custom test ids.  Thanks Brianna Laugher for the idea and
  implementation.

- introduce and document new hookwrapper mechanism useful for plugins
  which want to wrap the execution of certain hooks for their purposes.
  This supersedes the undocumented ``__multicall__`` protocol which
  pytest itself and some external plugins use.  Note that pytest-2.8
  is scheduled to drop supporting the old ``__multicall__``
  and only support the hookwrapper protocol.

- majorly speed up invocation of plugin hooks

- use hookwrapper mechanism in builtin pytest plugins.

- add a doctest ini option for doctest flags, thanks Holger Peters.

- add note to docs that if you want to mark a parameter and the
  parameter is a callable, you also need to pass in a reason to disambiguate
  it from the "decorator" case.  Thanks Tom Viner.

- "python_classes" and "python_functions" options now support glob-patterns
 for test discovery, as discussed in issue600. Thanks Ldiary Translations.

- allow to override parametrized fixtures with non-parametrized ones and vice versa (bubenkoff).

- fix issue463: raise specific error for 'parameterize' misspelling (pfctdayelise).

- On failure, the ``sys.last_value``, ``sys.last_type`` and
  ``sys.last_traceback`` are set, so that a user can inspect the error
  via postmortem debugging (almarklein).

diffstat:

 devel/py-test/Makefile |  4 ++--
 devel/py-test/distinfo |  8 ++++----
 2 files changed, 6 insertions(+), 6 deletions(-)

diffs (26 lines):

diff -r 08e9505e3bf2 -r d97918f5711e devel/py-test/Makefile
--- a/devel/py-test/Makefile    Thu Apr 02 22:40:33 2015 +0000
+++ b/devel/py-test/Makefile    Thu Apr 02 22:40:44 2015 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.8 2014/10/27 08:44:12 wiz Exp $
+# $NetBSD: Makefile,v 1.9 2015/04/02 22:40:44 wiz Exp $
 
-DISTNAME=      pytest-2.6.4
+DISTNAME=      pytest-2.7.0
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME:S/py//}
 CATEGORIES=    devel
 MASTER_SITES=  https://pypi.python.org/packages/source/p/pytest/
diff -r 08e9505e3bf2 -r d97918f5711e devel/py-test/distinfo
--- a/devel/py-test/distinfo    Thu Apr 02 22:40:33 2015 +0000
+++ b/devel/py-test/distinfo    Thu Apr 02 22:40:44 2015 +0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.7 2014/10/27 08:44:12 wiz Exp $
+$NetBSD: distinfo,v 1.8 2015/04/02 22:40:44 wiz Exp $
 
-SHA1 (pytest-2.6.4.tar.gz) = 104ed27957dd68381c30bf38d20edc7f33f63d9b
-RMD160 (pytest-2.6.4.tar.gz) = c9aa0955d25280935e9a51e6a88c482fd8c8c9c0
-Size (pytest-2.6.4.tar.gz) = 512090 bytes
+SHA1 (pytest-2.7.0.tar.gz) = 297b27dc5a77ec3a22bb2bee1dfa178ec162d9e4
+RMD160 (pytest-2.7.0.tar.gz) = a2a79ce147458357455a7a46a304179467cf4234
+Size (pytest-2.7.0.tar.gz) = 526640 bytes
 SHA1 (patch-aa) = 8f328ce39459c5a6fb7cca404f4986c1030d7981



Home | Main Index | Thread Index | Old Index