pkgsrc-Changes archive

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

CVS commit: pkgsrc/devel/py-test-mock



Module Name:    pkgsrc
Committed By:   adam
Date:           Mon Jan 27 13:05:07 UTC 2020

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

Log Message:
py-test-mock: updated to 2.0.0

2.0.0:

Breaking Changes

mocker.spy attributes for tracking returned values and raised exceptions of its spied functions are now called spy_return and spy_exception, instead of reusing the existing MagicMock attributes 
return_value and side_effect.

Version 1.13 introduced a serious regression: after a spied function using mocker.spy raises an exception, further calls to the spy will not call the spied function, always raising the first 
exception instead: assigning to side_effect causes unittest.mock to behave this way.

The deprecated mock alias to the mocker fixture has finally been removed.


To generate a diff of this commit:
cvs rdiff -u -r1.20 -r1.21 pkgsrc/devel/py-test-mock/Makefile
cvs rdiff -u -r1.18 -r1.19 pkgsrc/devel/py-test-mock/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-mock/Makefile
diff -u pkgsrc/devel/py-test-mock/Makefile:1.20 pkgsrc/devel/py-test-mock/Makefile:1.21
--- pkgsrc/devel/py-test-mock/Makefile:1.20     Wed Dec 11 10:32:34 2019
+++ pkgsrc/devel/py-test-mock/Makefile  Mon Jan 27 13:05:07 2020
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.20 2019/12/11 10:32:34 adam Exp $
+# $NetBSD: Makefile,v 1.21 2020/01/27 13:05:07 adam Exp $
 
-DISTNAME=      pytest-mock-1.13.0
+DISTNAME=      pytest-mock-2.0.0
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME:S/py//}
 CATEGORIES=    devel python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=p/pytest-mock/}

Index: pkgsrc/devel/py-test-mock/distinfo
diff -u pkgsrc/devel/py-test-mock/distinfo:1.18 pkgsrc/devel/py-test-mock/distinfo:1.19
--- pkgsrc/devel/py-test-mock/distinfo:1.18     Wed Dec 11 10:32:34 2019
+++ pkgsrc/devel/py-test-mock/distinfo  Mon Jan 27 13:05:07 2020
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.18 2019/12/11 10:32:34 adam Exp $
+$NetBSD: distinfo,v 1.19 2020/01/27 13:05:07 adam Exp $
 
-SHA1 (pytest-mock-1.13.0.tar.gz) = 06c58a722805aec7fd94a1665ca27439583ed37a
-RMD160 (pytest-mock-1.13.0.tar.gz) = dfdede8168adebd6350d935011e69c1eee979094
-SHA512 (pytest-mock-1.13.0.tar.gz) = 11ca6379a32489fc9e18cdbc40ebc1f59fb1284fb3a8c39a4d98435d0f3b3e1630d13243dd79e2d3f468a3296b3931bc810da2095a0a9c29150010d9e1a44ed8
-Size (pytest-mock-1.13.0.tar.gz) = 23823 bytes
+SHA1 (pytest-mock-2.0.0.tar.gz) = 8dfd1f43e7f0379b017669ca705f245910b14c88
+RMD160 (pytest-mock-2.0.0.tar.gz) = d11a35777126df3d39e29f94bb22a313f197bab1
+SHA512 (pytest-mock-2.0.0.tar.gz) = 8bd7f634afebeae628470270c81f0198647bf8cd5b0fac438891d881d9823e40e814d598670bb9c9722b864990958e69d385c7c6a6e2adc81d2adcb303fbe0b0
+Size (pytest-mock-2.0.0.tar.gz) = 24665 bytes



Home | Main Index | Thread Index | Old Index