Skip to content

Commit df48ae5

Browse files
committed
Preparing release version 3.6.1
1 parent 03fd60d commit df48ae5

30 files changed

+620
-539
lines changed

CHANGELOG.rst

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,43 @@
88
99
.. towncrier release notes start
1010
11+
Pytest 3.6.1 (2018-06-05)
12+
=========================
13+
14+
Bug Fixes
15+
---------
16+
17+
- Fixed a bug where stdout and stderr were logged twice by junitxml when a test
18+
was marked xfail. (`#3491
19+
<https://github.com/pytest-dev/pytest/issues/3491>`_)
20+
21+
- Fix ``usefixtures`` mark applyed to unittest tests by correctly instantiating
22+
``FixtureInfo``. (`#3498
23+
<https://github.com/pytest-dev/pytest/issues/3498>`_)
24+
25+
- Fix assertion rewriter compatibility with libraries that monkey patch
26+
``file`` objects. (`#3503
27+
<https://github.com/pytest-dev/pytest/issues/3503>`_)
28+
29+
30+
Trivial/Internal Changes
31+
------------------------
32+
33+
- Enable caching for pip/pre-commit in order to reduce build time on
34+
travis/appveyor. (`#3502
35+
<https://github.com/pytest-dev/pytest/issues/3502>`_)
36+
37+
- Switch pytest to the src/ layout as we already suggested it for good practice
38+
- now we implement it as well. (`#3513
39+
<https://github.com/pytest-dev/pytest/issues/3513>`_)
40+
41+
- Fix if in tests to support 3.7.0b5, where a docstring handling in AST got
42+
reverted. (`#3530 <https://github.com/pytest-dev/pytest/issues/3530>`_)
43+
44+
- Remove some python2.5 compatibility code. (`#3629
45+
<https://github.com/pytest-dev/pytest/issues/3629>`_)
46+
47+
1148
Pytest 3.6.0 (2018-05-23)
1249
=========================
1350

changelog/3491.bugfix.rst

Lines changed: 0 additions & 1 deletion
This file was deleted.

changelog/3498.bugfix

Lines changed: 0 additions & 1 deletion
This file was deleted.

changelog/3502.trivial.rst

Lines changed: 0 additions & 1 deletion
This file was deleted.

changelog/3503.bugfix.rst

Lines changed: 0 additions & 1 deletion
This file was deleted.

changelog/3513.trivial.rst

Lines changed: 0 additions & 1 deletion
This file was deleted.

changelog/3530.trivial.rst

Lines changed: 0 additions & 1 deletion
This file was deleted.

changelog/3629.trivial.rst

Lines changed: 0 additions & 1 deletion
This file was deleted.

doc/en/announce/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Release announcements
66
:maxdepth: 2
77

88

9+
release-3.6.1
910
release-3.6.0
1011
release-3.5.1
1112
release-3.5.0

doc/en/announce/release-3.6.1.rst

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
pytest-3.6.1
2+
=======================================
3+
4+
pytest 3.6.1 has just been released to PyPI.
5+
6+
This is a bug-fix release, being a drop-in replacement. To upgrade::
7+
8+
pip install --upgrade pytest
9+
10+
The full changelog is available at http://doc.pytest.org/en/latest/changelog.html.
11+
12+
Thanks to all who contributed to this release, among them:
13+
14+
* Anthony Sottile
15+
* Bruno Oliveira
16+
* Jeffrey Rackauckas
17+
* Miro Hrončok
18+
* Oliver Bestwalter
19+
* Ronny Pfannschmidt
20+
21+
22+
Happy testing,
23+
The pytest Development Team

doc/en/assert.rst

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -29,17 +29,17 @@ you will see the return value of the function call::
2929
platform linux -- Python 3.x.y, pytest-3.x.y, py-1.x.y, pluggy-0.x.y
3030
rootdir: $REGENDOC_TMPDIR, inifile:
3131
collected 1 item
32-
32+
3333
test_assert1.py F [100%]
34-
34+
3535
================================= FAILURES =================================
3636
______________________________ test_function _______________________________
37-
37+
3838
def test_function():
3939
> assert f() == 4
4040
E assert 3 == 4
4141
E + where 3 = f()
42-
42+
4343
test_assert1.py:5: AssertionError
4444
========================= 1 failed in 0.12 seconds =========================
4545

@@ -172,12 +172,12 @@ if you run this module::
172172
platform linux -- Python 3.x.y, pytest-3.x.y, py-1.x.y, pluggy-0.x.y
173173
rootdir: $REGENDOC_TMPDIR, inifile:
174174
collected 1 item
175-
175+
176176
test_assert2.py F [100%]
177-
177+
178178
================================= FAILURES =================================
179179
___________________________ test_set_comparison ____________________________
180-
180+
181181
def test_set_comparison():
182182
set1 = set("1308")
183183
set2 = set("8035")
@@ -188,7 +188,7 @@ if you run this module::
188188
E Extra items in the right set:
189189
E '5'
190190
E Use -v to get the full diff
191-
191+
192192
test_assert2.py:5: AssertionError
193193
========================= 1 failed in 0.12 seconds =========================
194194

@@ -241,14 +241,14 @@ the conftest file::
241241
F [100%]
242242
================================= FAILURES =================================
243243
_______________________________ test_compare _______________________________
244-
244+
245245
def test_compare():
246246
f1 = Foo(1)
247247
f2 = Foo(2)
248248
> assert f1 == f2
249249
E assert Comparing Foo instances:
250250
E vals: 1 != 2
251-
251+
252252
test_foocompare.py:11: AssertionError
253253
1 failed in 0.12 seconds
254254

doc/en/builtin.rst

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ For information about fixtures, see :ref:`fixtures`. To see a complete list of a
1717
$ pytest -q --fixtures
1818
cache
1919
Return a cache object that can persist state between testing sessions.
20-
20+
2121
cache.get(key, default)
2222
cache.set(key, value)
23-
23+
2424
Keys must be a ``/`` separated value, where the first part is usually the
2525
name of your plugin or application to avoid clashes with other cache users.
26-
26+
2727
Values can be any object handled by the json stdlib module.
2828
capsys
2929
Enable capturing of writes to ``sys.stdout`` and ``sys.stderr`` and make
@@ -49,9 +49,9 @@ For information about fixtures, see :ref:`fixtures`. To see a complete list of a
4949
Fixture that returns a :py:class:`dict` that will be injected into the namespace of doctests.
5050
pytestconfig
5151
Session-scoped fixture that returns the :class:`_pytest.config.Config` object.
52-
52+
5353
Example::
54-
54+
5555
def test_foo(pytestconfig):
5656
if pytestconfig.getoption("verbose"):
5757
...
@@ -61,9 +61,9 @@ For information about fixtures, see :ref:`fixtures`. To see a complete list of a
6161
configured reporters, like JUnit XML.
6262
The fixture is callable with ``(name, value)``, with value being automatically
6363
xml-encoded.
64-
64+
6565
Example::
66-
66+
6767
def test_function(record_property):
6868
record_property("example_key", 1)
6969
record_xml_property
@@ -74,17 +74,17 @@ For information about fixtures, see :ref:`fixtures`. To see a complete list of a
7474
automatically xml-encoded
7575
caplog
7676
Access and control log capturing.
77-
77+
7878
Captured logs are available through the following methods::
79-
79+
8080
* caplog.text -> string containing formatted log output
8181
* caplog.records -> list of logging.LogRecord instances
8282
* caplog.record_tuples -> list of (logger_name, level, message) tuples
8383
* caplog.clear() -> clear captured records and formatted log output string
8484
monkeypatch
8585
The returned ``monkeypatch`` fixture provides these
8686
helper methods to modify objects, dictionaries or os.environ::
87-
87+
8888
monkeypatch.setattr(obj, name, value, raising=True)
8989
monkeypatch.delattr(obj, name, raising=True)
9090
monkeypatch.setitem(mapping, name, value)
@@ -93,14 +93,14 @@ For information about fixtures, see :ref:`fixtures`. To see a complete list of a
9393
monkeypatch.delenv(name, value, raising=True)
9494
monkeypatch.syspath_prepend(path)
9595
monkeypatch.chdir(path)
96-
96+
9797
All modifications will be undone after the requesting
9898
test function or fixture has finished. The ``raising``
9999
parameter determines if a KeyError or AttributeError
100100
will be raised if the set/deletion operation has no target.
101101
recwarn
102102
Return a :class:`WarningsRecorder` instance that records all warnings emitted by test functions.
103-
103+
104104
See http://docs.python.org/library/warnings.html for information
105105
on warning categories.
106106
tmpdir_factory
@@ -111,9 +111,9 @@ For information about fixtures, see :ref:`fixtures`. To see a complete list of a
111111
created as a sub directory of the base temporary
112112
directory. The returned object is a `py.path.local`_
113113
path object.
114-
114+
115115
.. _`py.path.local`: https://py.readthedocs.io/en/latest/path.html
116-
116+
117117
no tests ran in 0.12 seconds
118118

119119
You can also interactively ask for help, e.g. by typing on the Python interactive prompt something like::

0 commit comments

Comments
 (0)