From 34eeda1c09074ade61944bb5b8af326c18157a0b Mon Sep 17 00:00:00 2001 From: Bruno Oliveira Date: Sat, 12 Jan 2019 00:55:12 +0000 Subject: [PATCH] Preparing release version 4.1.1 --- CHANGELOG.rst | 32 +++++++++++++++++++++++++++++++ changelog/2256.bugfix.rst | 1 - changelog/3375.doc.rst | 1 - changelog/3456.bugfix.rst | 1 - changelog/4602.trivial.rst | 1 - changelog/4617.bugfix.rst | 1 - changelog/4631.bugfix.rst | 1 - doc/en/announce/index.rst | 1 + doc/en/announce/release-4.1.1.rst | 27 ++++++++++++++++++++++++++ doc/en/cache.rst | 4 ++++ doc/en/example/parametrize.rst | 2 ++ 11 files changed, 66 insertions(+), 6 deletions(-) delete mode 100644 changelog/2256.bugfix.rst delete mode 100644 changelog/3375.doc.rst delete mode 100644 changelog/3456.bugfix.rst delete mode 100644 changelog/4602.trivial.rst delete mode 100644 changelog/4617.bugfix.rst delete mode 100644 changelog/4631.bugfix.rst create mode 100644 doc/en/announce/release-4.1.1.rst diff --git a/CHANGELOG.rst b/CHANGELOG.rst index e7784b931..02ea6e84f 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -18,6 +18,38 @@ with advance notice in the **Deprecations** section of releases. .. towncrier release notes start +pytest 4.1.1 (2019-01-12) +========================= + +Bug Fixes +--------- + +- `#2256 `_: Show full repr with ``assert a==b`` and ``-vv``. + + +- `#3456 `_: Extend Doctest-modules to ignore mock objects. + + +- `#4617 `_: Fixed ``pytest.warns`` bug when context manager is reused (e.g. multiple parametrization). + + +- `#4631 `_: Don't rewrite assertion when ``__getattr__`` is broken + + + +Improved Documentation +---------------------- + +- `#3375 `_: Document that using ``setup.cfg`` may crash other tools or cause hard to track down problems because it uses a different parser than ``pytest.ini`` or ``tox.ini`` files. + + + +Trivial/Internal Changes +------------------------ + +- `#4602 `_: Uninstall ``hypothesis`` in regen tox env. + + pytest 4.1.0 (2019-01-05) ========================= diff --git a/changelog/2256.bugfix.rst b/changelog/2256.bugfix.rst deleted file mode 100644 index 9dcd281ce..000000000 --- a/changelog/2256.bugfix.rst +++ /dev/null @@ -1 +0,0 @@ -Show full repr with ``assert a==b`` and ``-vv``. diff --git a/changelog/3375.doc.rst b/changelog/3375.doc.rst deleted file mode 100644 index f7858ff7e..000000000 --- a/changelog/3375.doc.rst +++ /dev/null @@ -1 +0,0 @@ -Document that using ``setup.cfg`` may crash other tools or cause hard to track down problems because it uses a different parser than ``pytest.ini`` or ``tox.ini`` files. diff --git a/changelog/3456.bugfix.rst b/changelog/3456.bugfix.rst deleted file mode 100644 index db6d5411e..000000000 --- a/changelog/3456.bugfix.rst +++ /dev/null @@ -1 +0,0 @@ -Extend Doctest-modules to ignore mock objects. diff --git a/changelog/4602.trivial.rst b/changelog/4602.trivial.rst deleted file mode 100644 index 619b40601..000000000 --- a/changelog/4602.trivial.rst +++ /dev/null @@ -1 +0,0 @@ -Uninstall ``hypothesis`` in regen tox env. diff --git a/changelog/4617.bugfix.rst b/changelog/4617.bugfix.rst deleted file mode 100644 index 166378efd..000000000 --- a/changelog/4617.bugfix.rst +++ /dev/null @@ -1 +0,0 @@ -Fixed ``pytest.warns`` bug when context manager is reused (e.g. multiple parametrization). diff --git a/changelog/4631.bugfix.rst b/changelog/4631.bugfix.rst deleted file mode 100644 index df929e8af..000000000 --- a/changelog/4631.bugfix.rst +++ /dev/null @@ -1 +0,0 @@ -Don't rewrite assertion when ``__getattr__`` is broken diff --git a/doc/en/announce/index.rst b/doc/en/announce/index.rst index 40734e5b3..51a3227ea 100644 --- a/doc/en/announce/index.rst +++ b/doc/en/announce/index.rst @@ -6,6 +6,7 @@ Release announcements :maxdepth: 2 + release-4.1.1 release-4.1.0 release-4.0.2 release-4.0.1 diff --git a/doc/en/announce/release-4.1.1.rst b/doc/en/announce/release-4.1.1.rst new file mode 100644 index 000000000..80644fc84 --- /dev/null +++ b/doc/en/announce/release-4.1.1.rst @@ -0,0 +1,27 @@ +pytest-4.1.1 +======================================= + +pytest 4.1.1 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 +* Anton Lodder +* Bruno Oliveira +* Daniel Hahler +* David Vo +* Oscar Benjamin +* Ronny Pfannschmidt +* Victor Maryama +* Yoav Caspi +* dmitry.dygalo + + +Happy testing, +The pytest Development Team diff --git a/doc/en/cache.rst b/doc/en/cache.rst index ba9d87a5f..2d2d67047 100644 --- a/doc/en/cache.rst +++ b/doc/en/cache.rst @@ -214,6 +214,8 @@ If you run this command for the first time, you can see the print statement: def test_function(mydata): > assert mydata == 23 E assert 42 == 23 + E -42 + E +23 test_caching.py:17: AssertionError -------------------------- Captured stdout setup --------------------------- @@ -235,6 +237,8 @@ the cache and nothing will be printed: def test_function(mydata): > assert mydata == 23 E assert 42 == 23 + E -42 + E +23 test_caching.py:17: AssertionError 1 failed in 0.12 seconds diff --git a/doc/en/example/parametrize.rst b/doc/en/example/parametrize.rst index 92756e492..98aaeae3b 100644 --- a/doc/en/example/parametrize.rst +++ b/doc/en/example/parametrize.rst @@ -406,6 +406,8 @@ argument sets to use for each test function. Let's run it: def test_equals(self, a, b): > assert a == b E assert 1 == 2 + E -1 + E +2 test_parametrize.py:18: AssertionError 1 failed, 2 passed in 0.12 seconds