diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 8e0ba82e4..22f3ac862 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -18,6 +18,31 @@ with advance notice in the **Deprecations** section of releases. .. towncrier release notes start +pytest 4.0.2 (2018-12-13) +========================= + +Bug Fixes +--------- + +- `#4265 `_: Validate arguments from the ``PYTEST_ADDOPTS`` environment variable and the ``addopts`` ini option separately. + + +- `#4435 `_: Fix ``raises(..., 'code(string)')`` frame filename. + + +- `#4500 `_: When a fixture yields and a log call is made after the test runs, and, if the test is interrupted, capture attributes are ``None``. + + +- `#4538 `_: Raise ``TypeError`` for ``with raises(..., match=)``. + + + +Improved Documentation +---------------------- + +- `#1495 `_: Document common doctest fixture directory tree structure pitfalls + + pytest 4.0.1 (2018-11-23) ========================= diff --git a/changelog/1495.doc.rst b/changelog/1495.doc.rst deleted file mode 100644 index ab7231333..000000000 --- a/changelog/1495.doc.rst +++ /dev/null @@ -1 +0,0 @@ -Document common doctest fixture directory tree structure pitfalls diff --git a/changelog/4265.bugfix.rst b/changelog/4265.bugfix.rst deleted file mode 100644 index 7b40737c3..000000000 --- a/changelog/4265.bugfix.rst +++ /dev/null @@ -1 +0,0 @@ -Validate arguments from the ``PYTEST_ADDOPTS`` environment variable and the ``addopts`` ini option separately. diff --git a/changelog/4435.bugfix.rst b/changelog/4435.bugfix.rst deleted file mode 100644 index de60b5e62..000000000 --- a/changelog/4435.bugfix.rst +++ /dev/null @@ -1 +0,0 @@ -Fix ``raises(..., 'code(string)')`` frame filename. diff --git a/changelog/4500.bugfix.rst b/changelog/4500.bugfix.rst deleted file mode 100644 index b84b6b117..000000000 --- a/changelog/4500.bugfix.rst +++ /dev/null @@ -1 +0,0 @@ -When a fixture yields and a log call is made after the test runs, and, if the test is interrupted, capture attributes are ``None``. diff --git a/changelog/4538.bugfix.rst b/changelog/4538.bugfix.rst deleted file mode 100644 index 0ecfb5be0..000000000 --- a/changelog/4538.bugfix.rst +++ /dev/null @@ -1 +0,0 @@ -Raise ``TypeError`` for ``with raises(..., match=)``. diff --git a/doc/en/announce/index.rst b/doc/en/announce/index.rst index 4120ccfc9..d6379f1b3 100644 --- a/doc/en/announce/index.rst +++ b/doc/en/announce/index.rst @@ -6,6 +6,7 @@ Release announcements :maxdepth: 2 + release-4.0.2 release-4.0.1 release-4.0.0 release-3.10.1 diff --git a/doc/en/announce/release-4.0.2.rst b/doc/en/announce/release-4.0.2.rst new file mode 100644 index 000000000..3b6e4be71 --- /dev/null +++ b/doc/en/announce/release-4.0.2.rst @@ -0,0 +1,24 @@ +pytest-4.0.2 +======================================= + +pytest 4.0.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 https://docs.pytest.org/en/latest/changelog.html. + +Thanks to all who contributed to this release, among them: + +* Anthony Sottile +* Bruno Oliveira +* Daniel Hahler +* Pedro Algarvio +* Ronny Pfannschmidt +* Tomer Keren +* Yash Todi + + +Happy testing, +The pytest Development Team diff --git a/doc/en/example/parametrize.rst b/doc/en/example/parametrize.rst index 488f6e310..16e48878c 100644 --- a/doc/en/example/parametrize.rst +++ b/doc/en/example/parametrize.rst @@ -537,7 +537,7 @@ Then run ``pytest`` with verbose mode and with only the ``basic`` marker: $ pytest -v -m basic =========================== test session starts ============================ - platform linux -- Python 3.x.y, pytest-4.x.y, py-1.x.y, pluggy-0.x.y -- $PYTHON_PREFIX/bin/python + platform linux -- Python 3.x.y, pytest-4.x.y, py-1.x.y, pluggy-0.x.y -- $PYTHON_PREFIX/bin/python3.6 cachedir: .pytest_cache rootdir: $REGENDOC_TMPDIR, inifile: collecting ... collected 17 items / 14 deselected