From c31018d9bcf0d206bcb134a376ea0f8e880510f1 Mon Sep 17 00:00:00 2001 From: Bruno Oliveira Date: Sun, 26 Aug 2018 12:43:43 +0000 Subject: [PATCH] Preparing release version 3.7.3 --- CHANGELOG.rst | 55 +++++++++++++++++++++++++++++ changelog/3033.bugfix.rst | 1 - changelog/3773.bugfix.rst | 1 - changelog/3796.bugfix.rst | 2 -- changelog/3816.bugfix.rst | 1 - changelog/3819.bugfix.rst | 1 - changelog/3824.doc.rst | 1 - changelog/3826.trivial.rst | 1 - changelog/3833.doc.rst | 1 - changelog/3843.bugfix.rst | 1 - changelog/3845.trivial.rst | 2 -- changelog/3848.bugfix.rst | 1 - changelog/3854.bugfix.rst | 1 - changelog/3870.doc.rst | 1 - doc/en/announce/index.rst | 1 + doc/en/announce/release-3.7.3.rst | 33 +++++++++++++++++ doc/en/example/parametrize.rst | 2 +- doc/en/example/pythoncollection.rst | 7 +--- doc/en/example/reportingdemo.rst | 2 +- 19 files changed, 92 insertions(+), 23 deletions(-) delete mode 100644 changelog/3033.bugfix.rst delete mode 100644 changelog/3773.bugfix.rst delete mode 100644 changelog/3796.bugfix.rst delete mode 100644 changelog/3816.bugfix.rst delete mode 100644 changelog/3819.bugfix.rst delete mode 100644 changelog/3824.doc.rst delete mode 100644 changelog/3826.trivial.rst delete mode 100644 changelog/3833.doc.rst delete mode 100644 changelog/3843.bugfix.rst delete mode 100644 changelog/3845.trivial.rst delete mode 100644 changelog/3848.bugfix.rst delete mode 100644 changelog/3854.bugfix.rst delete mode 100644 changelog/3870.doc.rst create mode 100644 doc/en/announce/release-3.7.3.rst diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 6a864e8a3..c433b0283 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -18,6 +18,61 @@ with advance notice in the **Deprecations** section of releases. .. towncrier release notes start +pytest 3.7.3 (2018-08-26) +========================= + +Bug Fixes +--------- + +- `#3033 `_: Fixtures during teardown can again use ``capsys`` and ``cafd`` to inspect output captured during tests. + + +- `#3773 `_: Fix collection of tests from ``__init__.py`` files if they match the ``python_files`` configuration option. + + +- `#3796 `_: Fixed an issue where teardown of fixtures of consecutive sub-packages were executed once, at the end of the outer + package. + + +- `#3816 `_: Fix bug where ``--show-capture=no`` option would still show logs printed during fixture teardown. + + +- `#3819 `_: Fix ``stdout/stderr`` not getting captured when real-time cli logging is active. + + +- `#3843 `_: Fix collection error when specifying test functions directly in the command line using ``test.py::test`` syntax together with ``--doctest-module``. + + +- `#3848 `_: Fix bugs where unicode arguments could not be passed to ``testdir.runpytest`` on Python 2. + + +- `#3854 `_: Fixes double collection of tests within packages when the filename starts with a capital letter. + + + +Improved Documentation +---------------------- + +- `#3824 `_: Added example for multiple glob pattern matches in ``python_files``. + + +- `#3833 `_: Added missing docs for ``pytester.Testdir`` + + +- `#3870 `_: correct documentation for setuptools integration + + + +Trivial/Internal Changes +------------------------ + +- `#3826 `_: Replace broken type annotations with type comments. + + +- `#3845 `_: Remove a reference to issue `#568 `_ from the documentation, which has since been + fixed. + + pytest 3.7.2 (2018-08-16) ========================= diff --git a/changelog/3033.bugfix.rst b/changelog/3033.bugfix.rst deleted file mode 100644 index 3fcd9dd11..000000000 --- a/changelog/3033.bugfix.rst +++ /dev/null @@ -1 +0,0 @@ -Fixtures during teardown can again use ``capsys`` and ``cafd`` to inspect output captured during tests. diff --git a/changelog/3773.bugfix.rst b/changelog/3773.bugfix.rst deleted file mode 100644 index 427f6c274..000000000 --- a/changelog/3773.bugfix.rst +++ /dev/null @@ -1 +0,0 @@ -Fix collection of tests from ``__init__.py`` files if they match the ``python_files`` configuration option. diff --git a/changelog/3796.bugfix.rst b/changelog/3796.bugfix.rst deleted file mode 100644 index 7a115301a..000000000 --- a/changelog/3796.bugfix.rst +++ /dev/null @@ -1,2 +0,0 @@ -Fixed an issue where teardown of fixtures of consecutive sub-packages were executed once, at the end of the outer -package. diff --git a/changelog/3816.bugfix.rst b/changelog/3816.bugfix.rst deleted file mode 100644 index a50c8f729..000000000 --- a/changelog/3816.bugfix.rst +++ /dev/null @@ -1 +0,0 @@ -Fix bug where ``--show-capture=no`` option would still show logs printed during fixture teardown. diff --git a/changelog/3819.bugfix.rst b/changelog/3819.bugfix.rst deleted file mode 100644 index 02b33f9b1..000000000 --- a/changelog/3819.bugfix.rst +++ /dev/null @@ -1 +0,0 @@ -Fix ``stdout/stderr`` not getting captured when real-time cli logging is active. diff --git a/changelog/3824.doc.rst b/changelog/3824.doc.rst deleted file mode 100644 index 016065120..000000000 --- a/changelog/3824.doc.rst +++ /dev/null @@ -1 +0,0 @@ -Added example for multiple glob pattern matches in ``python_files``. diff --git a/changelog/3826.trivial.rst b/changelog/3826.trivial.rst deleted file mode 100644 index 5354d0df9..000000000 --- a/changelog/3826.trivial.rst +++ /dev/null @@ -1 +0,0 @@ -Replace broken type annotations with type comments. diff --git a/changelog/3833.doc.rst b/changelog/3833.doc.rst deleted file mode 100644 index 254e2e4b6..000000000 --- a/changelog/3833.doc.rst +++ /dev/null @@ -1 +0,0 @@ -Added missing docs for ``pytester.Testdir`` diff --git a/changelog/3843.bugfix.rst b/changelog/3843.bugfix.rst deleted file mode 100644 index 3186c3fc5..000000000 --- a/changelog/3843.bugfix.rst +++ /dev/null @@ -1 +0,0 @@ -Fix collection error when specifying test functions directly in the command line using ``test.py::test`` syntax together with ``--doctest-module``. diff --git a/changelog/3845.trivial.rst b/changelog/3845.trivial.rst deleted file mode 100644 index 29c45ab56..000000000 --- a/changelog/3845.trivial.rst +++ /dev/null @@ -1,2 +0,0 @@ -Remove a reference to issue `#568 `_ from the documentation, which has since been -fixed. diff --git a/changelog/3848.bugfix.rst b/changelog/3848.bugfix.rst deleted file mode 100644 index 4442d7a89..000000000 --- a/changelog/3848.bugfix.rst +++ /dev/null @@ -1 +0,0 @@ -Fix bugs where unicode arguments could not be passed to ``testdir.runpytest`` on Python 2. diff --git a/changelog/3854.bugfix.rst b/changelog/3854.bugfix.rst deleted file mode 100644 index 6184f03b6..000000000 --- a/changelog/3854.bugfix.rst +++ /dev/null @@ -1 +0,0 @@ -Fixes double collection of tests within packages when the filename starts with a capital letter. diff --git a/changelog/3870.doc.rst b/changelog/3870.doc.rst deleted file mode 100644 index c56e10d11..000000000 --- a/changelog/3870.doc.rst +++ /dev/null @@ -1 +0,0 @@ -correct documentation for setuptools integration diff --git a/doc/en/announce/index.rst b/doc/en/announce/index.rst index 1e7f2ce0f..8a97baa5a 100644 --- a/doc/en/announce/index.rst +++ b/doc/en/announce/index.rst @@ -6,6 +6,7 @@ Release announcements :maxdepth: 2 + release-3.7.3 release-3.7.2 release-3.7.1 release-3.7.0 diff --git a/doc/en/announce/release-3.7.3.rst b/doc/en/announce/release-3.7.3.rst new file mode 100644 index 000000000..479ff7d87 --- /dev/null +++ b/doc/en/announce/release-3.7.3.rst @@ -0,0 +1,33 @@ +pytest-3.7.3 +======================================= + +pytest 3.7.3 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: + +* Andrew Champion +* Anthony Sottile +* Bruno Oliveira +* Daniel Hahler +* Gandalf Saxe +* Jennifer Rinker +* Natan Lao +* Ondřej Súkup +* Ronny Pfannschmidt +* Sankt Petersbug +* Tyler Richard +* Victor +* Vlad Shcherbina +* turturica +* victor +* wim glenn + + +Happy testing, +The pytest Development Team diff --git a/doc/en/example/parametrize.rst b/doc/en/example/parametrize.rst index fdc802554..7dca5510a 100644 --- a/doc/en/example/parametrize.rst +++ b/doc/en/example/parametrize.rst @@ -413,7 +413,7 @@ Running it results in some skips if we don't have all the python interpreters in . $ pytest -rs -q multipython.py ...sss...sssssssss...sss... [100%] ========================= short test summary info ========================== - SKIP [15] $REGENDOC_TMPDIR/CWD/multipython.py:28: 'python3.4' not found + SKIP [15] $REGENDOC_TMPDIR/CWD/multipython.py:29: 'python3.4' not found 12 passed, 15 skipped in 0.12 seconds Indirect parametrization of optional implementations/imports diff --git a/doc/en/example/pythoncollection.rst b/doc/en/example/pythoncollection.rst index b4950a75c..757e8980a 100644 --- a/doc/en/example/pythoncollection.rst +++ b/doc/en/example/pythoncollection.rst @@ -129,12 +129,7 @@ The test collection would look like this:: =========================== test session starts ============================ 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 2 items - - - - - + 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 e7c01e561..7e1acea4e 100644 --- a/doc/en/example/reportingdemo.rst +++ b/doc/en/example/reportingdemo.rst @@ -423,7 +423,7 @@ get on the terminal - we are working on that):: name = "abc-123" module = imp.new_module(name) code = _pytest._code.compile(src, name, "exec") - py.builtin.exec_(code, module.__dict__) + six.exec_(code, module.__dict__) sys.modules[name] = module > module.foo()