From f7a3f45a182ed8b4dabb130d2b46d717b006edeb Mon Sep 17 00:00:00 2001 From: Bruno Oliveira Date: Thu, 2 Aug 2018 12:04:39 +0000 Subject: [PATCH] Preparing release version 3.7.1 --- CHANGELOG.rst | 27 +++++++++++++++++++++++++++ changelog/3473.bugfix.rst | 1 - changelog/3712.bugfix.rst | 1 - changelog/3745.bugfix.rst | 1 - changelog/3747.bugfix.rst | 1 - changelog/3748.bugfix.rst | 1 - changelog/3757.bugfix.rst | 1 - changelog/3763.bugfix.rst | 1 - doc/en/announce/index.rst | 1 + doc/en/announce/release-3.7.1.rst | 21 +++++++++++++++++++++ doc/en/example/nonpython.rst | 7 +++---- doc/en/example/parametrize.rst | 7 ++++--- doc/en/example/reportingdemo.rst | 2 +- 13 files changed, 57 insertions(+), 15 deletions(-) delete mode 100644 changelog/3473.bugfix.rst delete mode 100644 changelog/3712.bugfix.rst delete mode 100644 changelog/3745.bugfix.rst delete mode 100644 changelog/3747.bugfix.rst delete mode 100644 changelog/3748.bugfix.rst delete mode 100644 changelog/3757.bugfix.rst delete mode 100644 changelog/3763.bugfix.rst create mode 100644 doc/en/announce/release-3.7.1.rst diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 3b3840620..2e4b3ea00 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -8,6 +8,33 @@ .. towncrier release notes start +pytest 3.7.1 (2018-08-02) +========================= + +Bug Fixes +--------- + +- `#3473 `_: Raise immediately if ``approx()`` is given an expected value of a type it doesn't understand (e.g. strings, nested dicts, etc.). + + +- `#3712 `_: Correctly represent the dimensions of an numpy array when calling ``repr()`` on ``approx()``. + + +- `#3745 `_: Display the absolute path if ``cache_dir`` is not relative to the ``rootdir`` instead of failing. + + +- `#3747 `_: Fix compatibility problem with plugins and the warning code issued by fixture functions when they are called directly. + + +- `#3748 `_: Fix infinite recursion in ``pytest.approx`` with arrays in ``numpy<1.13``. + + +- `#3757 `_: Pin pathlib2 to ``>=2.2.0`` as we require ``__fspath__`` support. + + +- `#3763 `_: Fix ``TypeError`` when the assertion message is ``bytes`` in python 3. + + pytest 3.7.0 (2018-07-30) ========================= diff --git a/changelog/3473.bugfix.rst b/changelog/3473.bugfix.rst deleted file mode 100644 index ef434b29f..000000000 --- a/changelog/3473.bugfix.rst +++ /dev/null @@ -1 +0,0 @@ -Raise immediately if ``approx()`` is given an expected value of a type it doesn't understand (e.g. strings, nested dicts, etc.). diff --git a/changelog/3712.bugfix.rst b/changelog/3712.bugfix.rst deleted file mode 100644 index 649ef6394..000000000 --- a/changelog/3712.bugfix.rst +++ /dev/null @@ -1 +0,0 @@ -Correctly represent the dimensions of an numpy array when calling ``repr()`` on ``approx()``. diff --git a/changelog/3745.bugfix.rst b/changelog/3745.bugfix.rst deleted file mode 100644 index 0225be77a..000000000 --- a/changelog/3745.bugfix.rst +++ /dev/null @@ -1 +0,0 @@ -Display the absolute path if ``cache_dir`` is not relative to the ``rootdir`` instead of failing. diff --git a/changelog/3747.bugfix.rst b/changelog/3747.bugfix.rst deleted file mode 100644 index a9123f255..000000000 --- a/changelog/3747.bugfix.rst +++ /dev/null @@ -1 +0,0 @@ -Fix compatibility problem with plugins and the warning code issued by fixture functions when they are called directly. diff --git a/changelog/3748.bugfix.rst b/changelog/3748.bugfix.rst deleted file mode 100644 index 1cac9cb69..000000000 --- a/changelog/3748.bugfix.rst +++ /dev/null @@ -1 +0,0 @@ -Fix infinite recursion in ``pytest.approx`` with arrays in ``numpy<1.13``. diff --git a/changelog/3757.bugfix.rst b/changelog/3757.bugfix.rst deleted file mode 100644 index 37bc90fcd..000000000 --- a/changelog/3757.bugfix.rst +++ /dev/null @@ -1 +0,0 @@ -Pin pathlib2 to ``>=2.2.0`` as we require ``__fspath__`` support. diff --git a/changelog/3763.bugfix.rst b/changelog/3763.bugfix.rst deleted file mode 100644 index 589346d2a..000000000 --- a/changelog/3763.bugfix.rst +++ /dev/null @@ -1 +0,0 @@ -Fix ``TypeError`` when the assertion message is ``bytes`` in python 3. diff --git a/doc/en/announce/index.rst b/doc/en/announce/index.rst index a9e40571d..d0f79a500 100644 --- a/doc/en/announce/index.rst +++ b/doc/en/announce/index.rst @@ -6,6 +6,7 @@ Release announcements :maxdepth: 2 + release-3.7.1 release-3.7.0 release-3.6.4 release-3.6.3 diff --git a/doc/en/announce/release-3.7.1.rst b/doc/en/announce/release-3.7.1.rst new file mode 100644 index 000000000..e1c35123d --- /dev/null +++ b/doc/en/announce/release-3.7.1.rst @@ -0,0 +1,21 @@ +pytest-3.7.1 +======================================= + +pytest 3.7.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 http://doc.pytest.org/en/latest/changelog.html. + +Thanks to all who contributed to this release, among them: + +* Anthony Sottile +* Bruno Oliveira +* Kale Kundert +* Ronny Pfannschmidt + + +Happy testing, +The pytest Development Team diff --git a/doc/en/example/nonpython.rst b/doc/en/example/nonpython.rst index bda15065a..2bc70c4cc 100644 --- a/doc/en/example/nonpython.rst +++ b/doc/en/example/nonpython.rst @@ -84,9 +84,8 @@ interesting to just look at the collection tree:: platform linux -- Python 3.x.y, pytest-3.x.y, py-1.x.y, pluggy-0.x.y rootdir: $REGENDOC_TMPDIR/nonpython, inifile: collected 2 items - - - - + + + ======================= no tests ran in 0.12 seconds ======================= diff --git a/doc/en/example/parametrize.rst b/doc/en/example/parametrize.rst index fdc802554..43f4f598f 100644 --- a/doc/en/example/parametrize.rst +++ b/doc/en/example/parametrize.rst @@ -411,10 +411,11 @@ is to be run with different sets of arguments for its three arguments: Running it results in some skips if we don't have all the python interpreters installed and otherwise runs all combinations (5 interpreters times 5 interpreters times 3 objects to serialize/deserialize):: . $ pytest -rs -q multipython.py - ...sss...sssssssss...sss... [100%] + ...ssssssssssssssssssssssss [100%] ========================= short test summary info ========================== - SKIP [15] $REGENDOC_TMPDIR/CWD/multipython.py:28: 'python3.4' not found - 12 passed, 15 skipped in 0.12 seconds + SKIP [12] $REGENDOC_TMPDIR/CWD/multipython.py:28: 'python3.4' not found + SKIP [12] $REGENDOC_TMPDIR/CWD/multipython.py:28: 'python3.5' not found + 3 passed, 24 skipped in 0.12 seconds Indirect parametrization of optional implementations/imports -------------------------------------------------------------------- diff --git a/doc/en/example/reportingdemo.rst b/doc/en/example/reportingdemo.rst index c54b9d040..e7c01e561 100644 --- a/doc/en/example/reportingdemo.rst +++ b/doc/en/example/reportingdemo.rst @@ -363,7 +363,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.6/site-packages/_pytest/python_api.py:635>:1: ValueError + <0-codegen $PYTHON_PREFIX/lib/python3.6/site-packages/_pytest/python_api.py:682>:1: ValueError ______________________ TestRaises.test_raises_doesnt _______________________ self =