From c52f87ede304f42cb9e8c79e461ccde8a55ea5f8 Mon Sep 17 00:00:00 2001 From: Bruno Oliveira Date: Wed, 6 Sep 2017 21:37:57 +0000 Subject: [PATCH] Preparing release version 3.2.2 --- CHANGELOG.rst | 47 +++++++++++++++++++++++++++++++ changelog/2604.doc | 1 - changelog/2653.doc | 1 - changelog/2681.bugfix | 1 - changelog/2691.trivial | 1 - changelog/2699.bugfix | 1 - changelog/2707.bugfix | 1 - changelog/2721.trivial | 1 - changelog/2731.bugfix | 1 - changelog/2739.trivial | 1 - doc/en/announce/index.rst | 1 + doc/en/announce/release-3.2.2.rst | 28 ++++++++++++++++++ doc/en/example/markers.rst | 5 ++-- doc/en/example/reportingdemo.rst | 2 +- 14 files changed, 80 insertions(+), 12 deletions(-) delete mode 100644 changelog/2604.doc delete mode 100644 changelog/2653.doc delete mode 100644 changelog/2681.bugfix delete mode 100644 changelog/2691.trivial delete mode 100644 changelog/2699.bugfix delete mode 100644 changelog/2707.bugfix delete mode 100644 changelog/2721.trivial delete mode 100644 changelog/2731.bugfix delete mode 100644 changelog/2739.trivial create mode 100644 doc/en/announce/release-3.2.2.rst diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 0cf7c1a17..829f691ad 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -8,6 +8,53 @@ .. towncrier release notes start +Pytest 3.2.2 (2017-09-06) +========================= + +Bug Fixes +--------- + +- Calling the deprecated `request.getfuncargvalue()` now shows the source of + the call. (`#2681 `_) + +- Allow tests declared as ``@staticmethod`` to use fixtures. (`#2699 + `_) + +- Fixed edge-case during collection: attributes which raised ``pytest.fail`` + when accessed would abort the entire collection. (`#2707 + `_) + +- Fix ``ReprFuncArgs`` with mixed unicode and UTF-8 args. (`#2731 + `_) + + +Improved Documentation +---------------------- + +- In examples on working with custom markers, add examples demonstrating the + usage of ``pytest.mark.MARKER_NAME.with_args`` in comparison with + ``pytest.mark.MARKER_NAME.__call__`` (`#2604 + `_) + +- In one of the simple examples, use `pytest_collection_modifyitems()` to skip + tests based on a command-line option, allowing its sharing while preventing a + user error when acessing `pytest.config` before the argument parsing. (`#2653 + `_) + + +Trivial/Internal Changes +------------------------ + +- Fixed minor error in 'Good Practices/Manual Integration' code snippet. + (`#2691 `_) + +- Fixed typo in goodpractices.rst. (`#2721 + `_) + +- Improve user guidance regarding ``--resultlog`` deprecation. (`#2739 + `_) + + Pytest 3.2.1 (2017-08-08) ========================= diff --git a/changelog/2604.doc b/changelog/2604.doc deleted file mode 100644 index f2b6dd7d1..000000000 --- a/changelog/2604.doc +++ /dev/null @@ -1 +0,0 @@ -In examples on working with custom markers, add examples demonstrating the usage of ``pytest.mark.MARKER_NAME.with_args`` in comparison with ``pytest.mark.MARKER_NAME.__call__`` diff --git a/changelog/2653.doc b/changelog/2653.doc deleted file mode 100644 index 202a06da9..000000000 --- a/changelog/2653.doc +++ /dev/null @@ -1 +0,0 @@ -In one of the simple examples, use `pytest_collection_modifyitems()` to skip tests based on a command-line option, allowing its sharing while preventing a user error when acessing `pytest.config` before the argument parsing. diff --git a/changelog/2681.bugfix b/changelog/2681.bugfix deleted file mode 100644 index a29c31fb7..000000000 --- a/changelog/2681.bugfix +++ /dev/null @@ -1 +0,0 @@ -Calling the deprecated `request.getfuncargvalue()` now shows the source of the call. diff --git a/changelog/2691.trivial b/changelog/2691.trivial deleted file mode 100644 index 9e101894a..000000000 --- a/changelog/2691.trivial +++ /dev/null @@ -1 +0,0 @@ -Fixed minor error in 'Good Practices/Manual Integration' code snippet. \ No newline at end of file diff --git a/changelog/2699.bugfix b/changelog/2699.bugfix deleted file mode 100644 index c5e07329b..000000000 --- a/changelog/2699.bugfix +++ /dev/null @@ -1 +0,0 @@ -Allow tests declared as ``@staticmethod`` to use fixtures. diff --git a/changelog/2707.bugfix b/changelog/2707.bugfix deleted file mode 100644 index 291e1489c..000000000 --- a/changelog/2707.bugfix +++ /dev/null @@ -1 +0,0 @@ -Fixed edge-case during collection: attributes which raised ``pytest.fail`` when accessed would abort the entire collection. diff --git a/changelog/2721.trivial b/changelog/2721.trivial deleted file mode 100644 index 21c9e09e4..000000000 --- a/changelog/2721.trivial +++ /dev/null @@ -1 +0,0 @@ -Fixed typo in goodpractices.rst. diff --git a/changelog/2731.bugfix b/changelog/2731.bugfix deleted file mode 100644 index 493ea503b..000000000 --- a/changelog/2731.bugfix +++ /dev/null @@ -1 +0,0 @@ -Fix ``ReprFuncArgs`` with mixed unicode and UTF-8 args. diff --git a/changelog/2739.trivial b/changelog/2739.trivial deleted file mode 100644 index 861f4d341..000000000 --- a/changelog/2739.trivial +++ /dev/null @@ -1 +0,0 @@ -Improve user guidance regarding ``--resultlog`` deprecation. diff --git a/doc/en/announce/index.rst b/doc/en/announce/index.rst index b6df7deec..a822adda5 100644 --- a/doc/en/announce/index.rst +++ b/doc/en/announce/index.rst @@ -6,6 +6,7 @@ Release announcements :maxdepth: 2 + release-3.2.2 release-3.2.1 release-3.2.0 release-3.1.3 diff --git a/doc/en/announce/release-3.2.2.rst b/doc/en/announce/release-3.2.2.rst new file mode 100644 index 000000000..599bf8727 --- /dev/null +++ b/doc/en/announce/release-3.2.2.rst @@ -0,0 +1,28 @@ +pytest-3.2.2 +======================================= + +pytest 3.2.2 has just been released to PyPI. + +This is a bug-fix release, being a drop-in replacement. To upgrade:: + + pip install --upgrade pytest + +The full changelog is available at http://doc.pytest.org/en/latest/changelog.html. + +Thanks to all who contributed to this release, among them: + +* Andreas Pelme +* Antonio Hidalgo +* Bruno Oliveira +* Felipe Dau +* Fernando Macedo +* Jesús Espino +* Joan Massich +* Joe Talbott +* Kirill Pinchuk +* Ronny Pfannschmidt +* Xuan Luong + + +Happy testing, +The pytest Development Team diff --git a/doc/en/example/markers.rst b/doc/en/example/markers.rst index ca28e898e..0dbc67310 100644 --- a/doc/en/example/markers.rst +++ b/doc/en/example/markers.rst @@ -393,6 +393,7 @@ The ``--markers`` option always gives you a list of available markers:: @pytest.mark.tryfirst: mark a hook implementation function such that the plugin machinery will try to call it first/as early as possible. @pytest.mark.trylast: mark a hook implementation function such that the plugin machinery will try to call it last/as late as possible. + .. _`passing callables to custom markers`: @@ -430,9 +431,9 @@ However, if there is a callable as the single positional argument with no keywor The output is as follows:: $ pytest -q -s - Marker info name=my_marker args=(,) kwars={} + Marker info name=my_marker args=(,) kwars={} . - 1 passed in 0.01 seconds + 1 passed in 0.12 seconds We can see that the custom marker has its argument set extended with the function ``hello_world``. This is the key different between creating a custom marker as a callable, which invokes ``__call__`` behind the scenes, and using ``with_args``. diff --git a/doc/en/example/reportingdemo.rst b/doc/en/example/reportingdemo.rst index 7508d726f..288b57160 100644 --- a/doc/en/example/reportingdemo.rst +++ b/doc/en/example/reportingdemo.rst @@ -358,7 +358,7 @@ get on the terminal - we are working on that):: > int(s) E ValueError: invalid literal for int() with base 10: 'qwe' - <0-codegen $PYTHON_PREFIX/lib/python3.5/site-packages/_pytest/python_api.py:570>:1: ValueError + <0-codegen $PYTHON_PREFIX/lib/python3.5/site-packages/_pytest/python_api.py:579>:1: ValueError _______ TestRaises.test_raises_doesnt ________ self =