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:           Thu Aug  3 07:44:11 UTC 2017

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

Log Message:
Pytest 3.2.0:
Deprecations and Removals
pytest.approx no longer supports >, >=, < and <= operators to avoid surprising/inconsistent behavior. See the docs for more information.
All old-style specific behavior in current classes in the pytest’s API is considered deprecated at this point and will be removed in a future release. This affects Python 2 users only and in rare 
situations.
A deprecation warning is now raised when using marks for parameters in pytest.mark.parametrize. Use pytest.param to apply marks to parameters instead.

Features
Add support for numpy arrays (and dicts) to approx.
Now test function objects have a pytestmark attribute containing a list of marks applied directly to the test function, as opposed to marks inherited from parent classes or modules.
Collection ignores local virtualenvs by default; –collect-in-virtualenv overrides this behavior.
Allow class methods decorated as @staticmethod to be candidates for collection as a test function. (Only for Python 2.7 and above. Python 2.6 will still ignore static methods.)
Introduce mark.with_args in order to allow passing functions/classes as sole argument to marks.
New cache_dir ini option: sets the directory where the contents of the cache plugin are stored. Directory may be relative or absolute path: if relative path, then directory is created relative to 
rootdir, otherwise it is used as is. Additionally path may contain environment variables which are expanded during runtime.
Introduce the PYTEST_CURRENT_TEST environment variable that is set with the nodeid and stage (setup, call and teardown) of the test being currently executed. See the documentation for more info.
Introduced @pytest.mark.filterwarnings mark which allows overwriting the warnings filter on a per test, class or module level. See the docs for more information.
--last-failed now remembers forever when a test has failed and only forgets it if it passes again. This makes it easy to fix a test suite by selectively running files and fixing tests incrementally.
New pytest_report_collectionfinish hook which allows plugins to add messages to the terminal reporting after collection has been finished successfully.
Added support for PEP-415’s Exception.__suppress_context__. Now if a raise exception from None is caught by pytest, pytest will no longer chain the context in the test report. The behavior now 
matches Python’s traceback behavior.
Exceptions raised by pytest.fail, pytest.skip and pytest.xfail now subclass BaseException, making them harder to be caught unintentionally by normal code.

Bug Fixes
Set stdin to a closed PIPE in pytester.py.Testdir.popen() for avoid unwanted interactive pdb
Add missing encoding attribute to sys.std* streams when using capsys capture mode.
Fix terminal color changing to black on Windows if colorama is imported in a conftest.py file.
Fix line number when reporting summary of skipped tests.
capture: ensure that EncodedFile.name is a string.
The options --fixtures and --fixtures-per-test will now keep indentation within docstrings.
doctests line numbers are now reported correctly, fixing pytest-sugar.
Fix non-determinism in order of fixture collection. Adds new dependency (ordereddict) for Python 2.6.


To generate a diff of this commit:
cvs rdiff -u -r1.33 -r1.34 pkgsrc/devel/py-test/Makefile
cvs rdiff -u -r1.6 -r1.7 pkgsrc/devel/py-test/PLIST
cvs rdiff -u -r1.30 -r1.31 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.33 pkgsrc/devel/py-test/Makefile:1.34
--- pkgsrc/devel/py-test/Makefile:1.33  Wed Jul  5 15:33:29 2017
+++ pkgsrc/devel/py-test/Makefile       Thu Aug  3 07:44:11 2017
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.33 2017/07/05 15:33:29 adam Exp $
+# $NetBSD: Makefile,v 1.34 2017/08/03 07:44:11 adam Exp $
 
-DISTNAME=      pytest-3.1.3
+DISTNAME=      pytest-3.2.0
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME:S/py//}
-CATEGORIES=    devel
+CATEGORIES=    devel python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=p/pytest/}
 
 MAINTAINER=    pkgsrc-users%NetBSD.org@localhost

Index: pkgsrc/devel/py-test/PLIST
diff -u pkgsrc/devel/py-test/PLIST:1.6 pkgsrc/devel/py-test/PLIST:1.7
--- pkgsrc/devel/py-test/PLIST:1.6      Tue May 23 08:30:11 2017
+++ pkgsrc/devel/py-test/PLIST  Thu Aug  3 07:44:11 2017
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.6 2017/05/23 08:30:11 adam Exp $
+@comment $NetBSD: PLIST,v 1.7 2017/08/03 07:44:11 adam Exp $
 bin/py.test-${PYVERSSUFFIX}
 bin/pytest-${PYVERSSUFFIX}
 ${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
@@ -92,6 +92,9 @@ ${PYSITELIB}/_pytest/monkeypatch.pyo
 ${PYSITELIB}/_pytest/nose.py
 ${PYSITELIB}/_pytest/nose.pyc
 ${PYSITELIB}/_pytest/nose.pyo
+${PYSITELIB}/_pytest/outcomes.py
+${PYSITELIB}/_pytest/outcomes.pyc
+${PYSITELIB}/_pytest/outcomes.pyo
 ${PYSITELIB}/_pytest/pastebin.py
 ${PYSITELIB}/_pytest/pastebin.pyc
 ${PYSITELIB}/_pytest/pastebin.pyo
@@ -101,6 +104,9 @@ ${PYSITELIB}/_pytest/pytester.pyo
 ${PYSITELIB}/_pytest/python.py
 ${PYSITELIB}/_pytest/python.pyc
 ${PYSITELIB}/_pytest/python.pyo
+${PYSITELIB}/_pytest/python_api.py
+${PYSITELIB}/_pytest/python_api.pyc
+${PYSITELIB}/_pytest/python_api.pyo
 ${PYSITELIB}/_pytest/recwarn.py
 ${PYSITELIB}/_pytest/recwarn.pyc
 ${PYSITELIB}/_pytest/recwarn.pyo

Index: pkgsrc/devel/py-test/distinfo
diff -u pkgsrc/devel/py-test/distinfo:1.30 pkgsrc/devel/py-test/distinfo:1.31
--- pkgsrc/devel/py-test/distinfo:1.30  Wed Jul  5 15:33:29 2017
+++ pkgsrc/devel/py-test/distinfo       Thu Aug  3 07:44:11 2017
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.30 2017/07/05 15:33:29 adam Exp $
+$NetBSD: distinfo,v 1.31 2017/08/03 07:44:11 adam Exp $
 
-SHA1 (pytest-3.1.3.tar.gz) = cd4071d489f61e7f5387e90d5f0eaef61a5f45d4
-RMD160 (pytest-3.1.3.tar.gz) = 5f99d3fe2cb2b7ccebe0a3b2b43e912d3421a24f
-SHA512 (pytest-3.1.3.tar.gz) = 96edf091925f58a836fdd83e95aeda86177a22d4b6c63cbd89eabc1ffde1302dbb8ed7aaad87f27685110e479f55415931be8c5501b77de1a5ea0d6553c048b6
-Size (pytest-3.1.3.tar.gz) = 768801 bytes
+SHA1 (pytest-3.2.0.tar.gz) = 5244a4ba897d0bd565cd4423cbb575eb0f9954d5
+RMD160 (pytest-3.2.0.tar.gz) = 4c2b9907606b341bdddfac885d83b42b433c9fc9
+SHA512 (pytest-3.2.0.tar.gz) = 5ecf826aec47b585f30ef277b66330da51c841cad7967206171f6d94afd5f97179ff25f08113d65a33f6ca12ed61224d65b6b093336ef77b59836589d85259af
+Size (pytest-3.2.0.tar.gz) = 782232 bytes



Home | Main Index | Thread Index | Old Index