diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 28269a311..59acc3b9e 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -8,6 +8,53 @@ .. towncrier release notes start +Pytest 3.2.4 (2017-11-13) +========================= + +Bug Fixes +--------- + +- Fix the bug where running pytest with "--pyargs" will result in Items with + empty "parent.nodeid" if run from a different root directory. (`#2775 + `_) + +- Fix issue with @pytest.parametrize if argnames was specified as kwarg. + (`#2819 `_) + +- Strip whitespace from marker names when reading them from INI config. (`#2856 + `_) + +- Show full context of doctest source in the pytest output, if the lineno of + failed example in the docstring is < 9. (`#2882 + `_) + + +Improved Documentation +---------------------- + +- Introduce a dedicated section about conftest.py. (`#1505 + `_) + +- Explicitly mention ``xpass`` in the documentation of ``xfail``. (`#1997 + `_) + +- Append example for pytest.param in the example/parametrize document. (`#2658 + `_) + +- Clarify language of proposal for fixtures parameters (`#2893 + `_) + +- List python 3.6 in the documented supported versions in the getting started + document. (`#2903 `_) + +- Clarify the documentation of available fixture scopes. (`#538 + `_) + +- Add documentation about the ``python -m pytest`` invocation adding the + current directory to sys.path. (`#911 + `_) + + Pytest 3.2.3 (2017-10-03) ========================= diff --git a/changelog/1505.doc b/changelog/1505.doc deleted file mode 100644 index 1b303d1bd..000000000 --- a/changelog/1505.doc +++ /dev/null @@ -1 +0,0 @@ -Introduce a dedicated section about conftest.py. diff --git a/changelog/1997.doc b/changelog/1997.doc deleted file mode 100644 index 0fa110dc9..000000000 --- a/changelog/1997.doc +++ /dev/null @@ -1 +0,0 @@ -Explicitly mention ``xpass`` in the documentation of ``xfail``. diff --git a/changelog/2658.doc b/changelog/2658.doc deleted file mode 100644 index 2da7f3d6c..000000000 --- a/changelog/2658.doc +++ /dev/null @@ -1 +0,0 @@ -Append example for pytest.param in the example/parametrize document. \ No newline at end of file diff --git a/changelog/2775.bugfix b/changelog/2775.bugfix deleted file mode 100644 index 8123522ac..000000000 --- a/changelog/2775.bugfix +++ /dev/null @@ -1 +0,0 @@ -Fix the bug where running pytest with "--pyargs" will result in Items with empty "parent.nodeid" if run from a different root directory. diff --git a/changelog/2819.bugfix b/changelog/2819.bugfix deleted file mode 100644 index 303903cf7..000000000 --- a/changelog/2819.bugfix +++ /dev/null @@ -1 +0,0 @@ -Fix issue with @pytest.parametrize if argnames was specified as kwarg. \ No newline at end of file diff --git a/changelog/2856.bugfix b/changelog/2856.bugfix deleted file mode 100644 index 7e5fc8fc7..000000000 --- a/changelog/2856.bugfix +++ /dev/null @@ -1 +0,0 @@ -Strip whitespace from marker names when reading them from INI config. diff --git a/changelog/2882.bugfix b/changelog/2882.bugfix deleted file mode 100644 index 2bda24c01..000000000 --- a/changelog/2882.bugfix +++ /dev/null @@ -1 +0,0 @@ -Show full context of doctest source in the pytest output, if the lineno of failed example in the docstring is < 9. \ No newline at end of file diff --git a/changelog/2893.doc b/changelog/2893.doc deleted file mode 100644 index a305f1890..000000000 --- a/changelog/2893.doc +++ /dev/null @@ -1 +0,0 @@ -Clarify language of proposal for fixtures parameters diff --git a/changelog/2903.doc b/changelog/2903.doc deleted file mode 100644 index 492a8c685..000000000 --- a/changelog/2903.doc +++ /dev/null @@ -1 +0,0 @@ -List python 3.6 in the documented supported versions in the getting started document. diff --git a/changelog/538.doc b/changelog/538.doc deleted file mode 100644 index bc5fb712f..000000000 --- a/changelog/538.doc +++ /dev/null @@ -1 +0,0 @@ -Clarify the documentation of available fixture scopes. diff --git a/changelog/911.doc b/changelog/911.doc deleted file mode 100644 index e9d94f21c..000000000 --- a/changelog/911.doc +++ /dev/null @@ -1 +0,0 @@ -Add documentation about the ``python -m pytest`` invocation adding the current directory to sys.path. diff --git a/doc/en/announce/index.rst b/doc/en/announce/index.rst index 58b9aeec7..2e3b45805 100644 --- a/doc/en/announce/index.rst +++ b/doc/en/announce/index.rst @@ -6,6 +6,7 @@ Release announcements :maxdepth: 2 + release-3.2.4 release-3.2.3 release-3.2.2 release-3.2.1 diff --git a/doc/en/announce/release-3.2.4.rst b/doc/en/announce/release-3.2.4.rst new file mode 100644 index 000000000..44bfcc27e --- /dev/null +++ b/doc/en/announce/release-3.2.4.rst @@ -0,0 +1,36 @@ +pytest-3.2.4 +======================================= + +pytest 3.2.4 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: + +* Bruno Oliveira +* Christian Boelsen +* Christoph Buchner +* Daw-Ran Liou +* Florian Bruhin +* Franck Michea +* Leonard Lausen +* Matty G +* Owen Tuz +* Pavel Karateev +* Pierre GIRAUD +* Ronny Pfannschmidt +* Stephen Finucane +* Sviatoslav Abakumov +* Thomas Hisch +* Tom Dalton +* Xuan Luong +* Yorgos Pagles +* Семён Марьясин + + +Happy testing, +The pytest Development Team diff --git a/doc/en/example/pythoncollection.rst b/doc/en/example/pythoncollection.rst index 5fb63035a..18ccae66e 100644 --- a/doc/en/example/pythoncollection.rst +++ b/doc/en/example/pythoncollection.rst @@ -235,5 +235,5 @@ file will be left out:: platform linux -- Python 3.x.y, pytest-3.x.y, py-1.x.y, pluggy-0.x.y rootdir: $REGENDOC_TMPDIR, inifile: pytest.ini collected 0 items - + ======= no tests ran in 0.12 seconds ======== diff --git a/doc/en/example/reportingdemo.rst b/doc/en/example/reportingdemo.rst index 288b57160..2543e840e 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:579>:1: ValueError + <0-codegen $PYTHON_PREFIX/lib/python3.5/site-packages/_pytest/python_api.py:580>:1: ValueError _______ TestRaises.test_raises_doesnt ________ self = diff --git a/doc/en/skipping.rst b/doc/en/skipping.rst index d6d1e2414..f0fbaa774 100644 --- a/doc/en/skipping.rst +++ b/doc/en/skipping.rst @@ -325,12 +325,12 @@ Running it with the report-on-xfail option gives this output:: platform linux -- Python 3.x.y, pytest-3.x.y, py-1.x.y, pluggy-0.x.y rootdir: $REGENDOC_TMPDIR/example, inifile: collected 7 items - + xfail_demo.py xxxxxxx ======= short test summary info ======== XFAIL xfail_demo.py::test_hello XFAIL xfail_demo.py::test_hello2 - reason: [NOTRUN] + reason: [NOTRUN] XFAIL xfail_demo.py::test_hello3 condition: hasattr(os, 'sep') XFAIL xfail_demo.py::test_hello4 @@ -340,7 +340,7 @@ Running it with the report-on-xfail option gives this output:: XFAIL xfail_demo.py::test_hello6 reason: reason XFAIL xfail_demo.py::test_hello7 - + ======= 7 xfailed in 0.12 seconds ======== .. _`skip/xfail with parametrize`: