diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 40b329436..d68a160ab 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -18,6 +18,51 @@ with advance notice in the **Deprecations** section of releases. .. towncrier release notes start +pytest 3.8.1 (2018-09-22) +========================= + +Bug Fixes +--------- + +- `#3286 `_: ``.pytest_cache`` directory is now automatically ignored by Git. Users who would like to contribute a solution for other SCMs please consult/comment on this issue. + + +- `#3749 `_: Fix the following error during collection of tests inside packages:: + + TypeError: object of type 'Package' has no len() + + +- `#3941 `_: Fix bug where indirect parametrization would consider the scope of all fixtures used by the test function to determine the parametrization scope, and not only the scope of the fixtures being parametrized. + + +- `#3973 `_: Fix crash of the assertion rewriter if a test changed the current working directory without restoring it afterwards. + + +- `#3998 `_: Fix issue that prevented some caplog properties (for example ``record_tuples``) from being available when entering the debugger with ``--pdb``. + + +- `#3999 `_: Fix ``UnicodeDecodeError`` in python2.x when a class returns a non-ascii binary ``__repr__`` in an assertion which also contains non-ascii text. + + + +Improved Documentation +---------------------- + +- `#3996 `_: New `Deprecations and Removals `_ page shows all currently + deprecated features, the rationale to do so, and alternatives to update your code. It also list features removed + from pytest in past major releases to help those with ancient pytest versions to upgrade. + + + +Trivial/Internal Changes +------------------------ + +- `#3955 `_: Improve pre-commit detection for changelog filenames + + +- `#3975 `_: Remove legacy code around im_func as that was python2 only + + pytest 3.8.0 (2018-09-05) ========================= diff --git a/changelog/3286.bugfix.rst b/changelog/3286.bugfix.rst deleted file mode 100644 index d69e08531..000000000 --- a/changelog/3286.bugfix.rst +++ /dev/null @@ -1 +0,0 @@ -``.pytest_cache`` directory is now automatically ignored by Git. Users who would like to contribute a solution for other SCMs please consult/comment on this issue. diff --git a/changelog/3749.bugfix.rst b/changelog/3749.bugfix.rst deleted file mode 100644 index 395ff12f5..000000000 --- a/changelog/3749.bugfix.rst +++ /dev/null @@ -1,3 +0,0 @@ -Fix the following error during collection of tests inside packages:: - - TypeError: object of type 'Package' has no len() diff --git a/changelog/3941.bugfix.rst b/changelog/3941.bugfix.rst deleted file mode 100644 index 1cd3e843f..000000000 --- a/changelog/3941.bugfix.rst +++ /dev/null @@ -1 +0,0 @@ -Fix bug where indirect parametrization would consider the scope of all fixtures used by the test function to determine the parametrization scope, and not only the scope of the fixtures being parametrized. diff --git a/changelog/3955.trivial.rst b/changelog/3955.trivial.rst deleted file mode 100644 index 2c7cd550f..000000000 --- a/changelog/3955.trivial.rst +++ /dev/null @@ -1 +0,0 @@ -Improve pre-commit detection for changelog filenames diff --git a/changelog/3973.bugfix.rst b/changelog/3973.bugfix.rst deleted file mode 100644 index 29c70b840..000000000 --- a/changelog/3973.bugfix.rst +++ /dev/null @@ -1 +0,0 @@ -Fix crash of the assertion rewriter if a test changed the current working directory without restoring it afterwards. diff --git a/changelog/3975.trivial.rst b/changelog/3975.trivial.rst deleted file mode 100644 index 1013e13b9..000000000 --- a/changelog/3975.trivial.rst +++ /dev/null @@ -1 +0,0 @@ -Remove legacy code around im_func as that was python2 only diff --git a/changelog/3996.doc.rst b/changelog/3996.doc.rst deleted file mode 100644 index de7e6e934..000000000 --- a/changelog/3996.doc.rst +++ /dev/null @@ -1,3 +0,0 @@ -New `Deprecations and Removals `_ page shows all currently -deprecated features, the rationale to do so, and alternatives to update your code. It also list features removed -from pytest in past major releases to help those with ancient pytest versions to upgrade. diff --git a/changelog/3998.bugfix.rst b/changelog/3998.bugfix.rst deleted file mode 100644 index e696f7087..000000000 --- a/changelog/3998.bugfix.rst +++ /dev/null @@ -1 +0,0 @@ -Fix issue that prevented some caplog properties (for example ``record_tuples``) from being available when entering the debugger with ``--pdb``. diff --git a/changelog/3999.bugfix.rst b/changelog/3999.bugfix.rst deleted file mode 100644 index e072f729e..000000000 --- a/changelog/3999.bugfix.rst +++ /dev/null @@ -1 +0,0 @@ -Fix ``UnicodeDecodeError`` in python2.x when a class returns a non-ascii binary ``__repr__`` in an assertion which also contains non-ascii text. diff --git a/doc/en/announce/index.rst b/doc/en/announce/index.rst index 1eaae502a..cdedd3ca7 100644 --- a/doc/en/announce/index.rst +++ b/doc/en/announce/index.rst @@ -6,6 +6,7 @@ Release announcements :maxdepth: 2 + release-3.8.1 release-3.8.0 release-3.7.4 release-3.7.3 diff --git a/doc/en/announce/release-3.8.1.rst b/doc/en/announce/release-3.8.1.rst new file mode 100644 index 000000000..3e05e58cb --- /dev/null +++ b/doc/en/announce/release-3.8.1.rst @@ -0,0 +1,25 @@ +pytest-3.8.1 +======================================= + +pytest 3.8.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: + +* Ankit Goel +* Anthony Sottile +* Bruno Oliveira +* Daniel Hahler +* Maximilian Albert +* Ronny Pfannschmidt +* William Jamir Silva +* wim glenn + + +Happy testing, +The pytest Development Team diff --git a/doc/en/example/parametrize.rst b/doc/en/example/parametrize.rst index 7dca5510a..5af269bba 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:29: 'python3.4' not found - 12 passed, 15 skipped in 0.12 seconds + SKIP [12] $REGENDOC_TMPDIR/CWD/multipython.py:29: 'python3.4' not found + SKIP [12] $REGENDOC_TMPDIR/CWD/multipython.py:29: 'python3.5' not found + 3 passed, 24 skipped in 0.12 seconds Indirect parametrization of optional implementations/imports --------------------------------------------------------------------