Skip to content

Commit 919f50a

Browse files
authored
Merge pull request #1896 from nicoddemus/release-3.0.2
Release 3.0.2
2 parents a094fb3 + 4e58c9a commit 919f50a

22 files changed

+106
-78
lines changed

CHANGELOG.rst

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
3.0.2.dev
2-
=========
3-
4-
*
1+
3.0.2
2+
=====
53

64
* Improve error message when passing non-string ids to ``pytest.mark.parametrize`` (`#1857`_).
75
Thanks `@okken`_ for the report and `@nicoddemus`_ for the PR.
@@ -23,18 +21,21 @@
2321
enabled. This allows proper post mortem debugging for all applications
2422
which have significant logic in their tearDown machinery (`#1890`_). Thanks
2523
`@mbyt`_ for the PR.
26-
27-
*
24+
25+
* Fix use of deprecated ``getfuncargvalue`` method in the internal doctest plugin.
26+
Thanks `@ViviCoder`_ for the report (`#1898`_).
2827

2928
.. _@joguSD: https://github.com/joguSD
3029
.. _@AiOO: https://github.com/AiOO
3130
.. _@mbyt: https://github.com/mbyt
31+
.. _@ViviCoder: https://github.com/ViviCoder
3232

3333
.. _#1857: https://github.com/pytest-dev/pytest/issues/1857
3434
.. _#1864: https://github.com/pytest-dev/pytest/issues/1864
3535
.. _#1888: https://github.com/pytest-dev/pytest/issues/1888
3636
.. _#1891: https://github.com/pytest-dev/pytest/pull/1891
3737
.. _#1890: https://github.com/pytest-dev/pytest/issues/1890
38+
.. _#1898: https://github.com/pytest-dev/pytest/issues/1898
3839

3940

4041
3.0.1

_pytest/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
#
2-
__version__ = '3.0.2.dev'
2+
__version__ = '3.0.2'

_pytest/doctest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def setup(self):
8888
if self.dtest is not None:
8989
self.fixture_request = _setup_fixtures(self)
9090
globs = dict(getfixture=self.fixture_request.getfixturevalue)
91-
for name, value in self.fixture_request.getfuncargvalue('doctest_namespace').items():
91+
for name, value in self.fixture_request.getfixturevalue('doctest_namespace').items():
9292
globs[name] = value
9393
self.dtest.globs.update(globs)
9494

doc/en/announce/index.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,11 @@ Release announcements
55
.. toctree::
66
:maxdepth: 2
77

8-
9-
sprint2016
8+
9+
release-3.0.2
1010
release-3.0.1
1111
release-3.0.0
12+
sprint2016
1213
release-2.9.2
1314
release-2.9.1
1415
release-2.9.0

doc/en/announce/release-3.0.2.rst

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
pytest-3.0.2
2+
============
3+
4+
pytest 3.0.2 has just been released to PyPI.
5+
6+
This release fixes some regressions and bugs reported in version 3.0.1, being a
7+
drop-in replacement. To upgrade::
8+
9+
pip install --upgrade pytest
10+
11+
The changelog is available at http://doc.pytest.org/en/latest/changelog.html.
12+
13+
Thanks to all who contributed to this release, among them:
14+
15+
* Adam Chainz
16+
* Andrew Svetlov
17+
* Bruno Oliveira
18+
* Daniel Hahler
19+
* Dmitry Dygalo
20+
* Florian Bruhin
21+
* Marcin Bachry
22+
* Ronny Pfannschmidt
23+
* matthiasha
24+
25+
Happy testing,
26+
The pytest Development Team

doc/en/assert.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ you will see the return value of the function call::
2626

2727
$ pytest test_assert1.py
2828
======= test session starts ========
29-
platform linux -- Python 3.5.2, pytest-3.0.1, py-1.4.31, pluggy-0.3.1
29+
platform linux -- Python 3.5.2, pytest-3.0.2, py-1.4.31, pluggy-0.3.1
3030
rootdir: $REGENDOC_TMPDIR, inifile:
3131
collected 1 items
3232
@@ -170,7 +170,7 @@ if you run this module::
170170

171171
$ pytest test_assert2.py
172172
======= test session starts ========
173-
platform linux -- Python 3.5.2, pytest-3.0.1, py-1.4.31, pluggy-0.3.1
173+
platform linux -- Python 3.5.2, pytest-3.0.2, py-1.4.31, pluggy-0.3.1
174174
rootdir: $REGENDOC_TMPDIR, inifile:
175175
collected 1 items
176176

doc/en/cache.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ If you then run it with ``--lf``::
8080

8181
$ pytest --lf
8282
======= test session starts ========
83-
platform linux -- Python 3.5.2, pytest-3.0.1, py-1.4.31, pluggy-0.3.1
83+
platform linux -- Python 3.5.2, pytest-3.0.2, py-1.4.31, pluggy-0.3.1
8484
run-last-failure: rerun last 2 failures
8585
rootdir: $REGENDOC_TMPDIR, inifile:
8686
collected 50 items
@@ -122,7 +122,7 @@ of ``FF`` and dots)::
122122

123123
$ pytest --ff
124124
======= test session starts ========
125-
platform linux -- Python 3.5.2, pytest-3.0.1, py-1.4.31, pluggy-0.3.1
125+
platform linux -- Python 3.5.2, pytest-3.0.2, py-1.4.31, pluggy-0.3.1
126126
run-last-failure: rerun last 2 failures first
127127
rootdir: $REGENDOC_TMPDIR, inifile:
128128
collected 50 items
@@ -227,14 +227,14 @@ You can always peek at the content of the cache using the
227227

228228
$ py.test --cache-show
229229
======= test session starts ========
230-
platform linux -- Python 3.5.2, pytest-3.0.1, py-1.4.31, pluggy-0.3.1
230+
platform linux -- Python 3.5.2, pytest-3.0.2, py-1.4.31, pluggy-0.3.1
231231
rootdir: $REGENDOC_TMPDIR, inifile:
232232
cachedir: $REGENDOC_TMPDIR/.cache
233233
------------------------------- cache values -------------------------------
234-
cache/lastfailed contains:
235-
{'test_caching.py::test_function': True}
236234
example/value contains:
237235
42
236+
cache/lastfailed contains:
237+
{'test_caching.py::test_function': True}
238238
239239
======= no tests ran in 0.12 seconds ========
240240

doc/en/capture.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ of the failing function and hide the other one::
6464

6565
$ pytest
6666
======= test session starts ========
67-
platform linux -- Python 3.5.2, pytest-3.0.1, py-1.4.31, pluggy-0.3.1
67+
platform linux -- Python 3.5.2, pytest-3.0.2, py-1.4.31, pluggy-0.3.1
6868
rootdir: $REGENDOC_TMPDIR, inifile:
6969
collected 2 items
7070

doc/en/doctest.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ then you can just invoke ``pytest`` without command line options::
4949

5050
$ pytest
5151
======= test session starts ========
52-
platform linux -- Python 3.5.2, pytest-3.0.1, py-1.4.31, pluggy-0.3.1
52+
platform linux -- Python 3.5.2, pytest-3.0.2, py-1.4.31, pluggy-0.3.1
5353
rootdir: $REGENDOC_TMPDIR, inifile: pytest.ini
5454
collected 1 items
5555

doc/en/example/markers.rst

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ You can then restrict a test run to only run tests marked with ``webtest``::
3131

3232
$ pytest -v -m webtest
3333
======= test session starts ========
34-
platform linux -- Python 3.5.2, pytest-3.0.1, py-1.4.31, pluggy-0.3.1 -- $PYTHON_PREFIX/bin/python3.5
34+
platform linux -- Python 3.5.2, pytest-3.0.2, py-1.4.31, pluggy-0.3.1 -- $PYTHON_PREFIX/bin/python3.5
3535
cachedir: .cache
3636
rootdir: $REGENDOC_TMPDIR, inifile:
3737
collecting ... collected 4 items
@@ -45,7 +45,7 @@ Or the inverse, running all tests except the webtest ones::
4545

4646
$ pytest -v -m "not webtest"
4747
======= test session starts ========
48-
platform linux -- Python 3.5.2, pytest-3.0.1, py-1.4.31, pluggy-0.3.1 -- $PYTHON_PREFIX/bin/python3.5
48+
platform linux -- Python 3.5.2, pytest-3.0.2, py-1.4.31, pluggy-0.3.1 -- $PYTHON_PREFIX/bin/python3.5
4949
cachedir: .cache
5050
rootdir: $REGENDOC_TMPDIR, inifile:
5151
collecting ... collected 4 items
@@ -66,7 +66,7 @@ tests based on their module, class, method, or function name::
6666

6767
$ pytest -v test_server.py::TestClass::test_method
6868
======= test session starts ========
69-
platform linux -- Python 3.5.2, pytest-3.0.1, py-1.4.31, pluggy-0.3.1 -- $PYTHON_PREFIX/bin/python3.5
69+
platform linux -- Python 3.5.2, pytest-3.0.2, py-1.4.31, pluggy-0.3.1 -- $PYTHON_PREFIX/bin/python3.5
7070
cachedir: .cache
7171
rootdir: $REGENDOC_TMPDIR, inifile:
7272
collecting ... collected 5 items
@@ -79,7 +79,7 @@ You can also select on the class::
7979

8080
$ pytest -v test_server.py::TestClass
8181
======= test session starts ========
82-
platform linux -- Python 3.5.2, pytest-3.0.1, py-1.4.31, pluggy-0.3.1 -- $PYTHON_PREFIX/bin/python3.5
82+
platform linux -- Python 3.5.2, pytest-3.0.2, py-1.4.31, pluggy-0.3.1 -- $PYTHON_PREFIX/bin/python3.5
8383
cachedir: .cache
8484
rootdir: $REGENDOC_TMPDIR, inifile:
8585
collecting ... collected 4 items
@@ -92,7 +92,7 @@ Or select multiple nodes::
9292

9393
$ pytest -v test_server.py::TestClass test_server.py::test_send_http
9494
======= test session starts ========
95-
platform linux -- Python 3.5.2, pytest-3.0.1, py-1.4.31, pluggy-0.3.1 -- $PYTHON_PREFIX/bin/python3.5
95+
platform linux -- Python 3.5.2, pytest-3.0.2, py-1.4.31, pluggy-0.3.1 -- $PYTHON_PREFIX/bin/python3.5
9696
cachedir: .cache
9797
rootdir: $REGENDOC_TMPDIR, inifile:
9898
collecting ... collected 8 items
@@ -130,7 +130,7 @@ select tests based on their names::
130130

131131
$ pytest -v -k http # running with the above defined example module
132132
======= test session starts ========
133-
platform linux -- Python 3.5.2, pytest-3.0.1, py-1.4.31, pluggy-0.3.1 -- $PYTHON_PREFIX/bin/python3.5
133+
platform linux -- Python 3.5.2, pytest-3.0.2, py-1.4.31, pluggy-0.3.1 -- $PYTHON_PREFIX/bin/python3.5
134134
cachedir: .cache
135135
rootdir: $REGENDOC_TMPDIR, inifile:
136136
collecting ... collected 4 items
@@ -144,7 +144,7 @@ And you can also run all tests except the ones that match the keyword::
144144

145145
$ pytest -k "not send_http" -v
146146
======= test session starts ========
147-
platform linux -- Python 3.5.2, pytest-3.0.1, py-1.4.31, pluggy-0.3.1 -- $PYTHON_PREFIX/bin/python3.5
147+
platform linux -- Python 3.5.2, pytest-3.0.2, py-1.4.31, pluggy-0.3.1 -- $PYTHON_PREFIX/bin/python3.5
148148
cachedir: .cache
149149
rootdir: $REGENDOC_TMPDIR, inifile:
150150
collecting ... collected 4 items
@@ -160,7 +160,7 @@ Or to select "http" and "quick" tests::
160160

161161
$ pytest -k "http or quick" -v
162162
======= test session starts ========
163-
platform linux -- Python 3.5.2, pytest-3.0.1, py-1.4.31, pluggy-0.3.1 -- $PYTHON_PREFIX/bin/python3.5
163+
platform linux -- Python 3.5.2, pytest-3.0.2, py-1.4.31, pluggy-0.3.1 -- $PYTHON_PREFIX/bin/python3.5
164164
cachedir: .cache
165165
rootdir: $REGENDOC_TMPDIR, inifile:
166166
collecting ... collected 4 items
@@ -352,7 +352,7 @@ the test needs::
352352

353353
$ pytest -E stage2
354354
======= test session starts ========
355-
platform linux -- Python 3.5.2, pytest-3.0.1, py-1.4.31, pluggy-0.3.1
355+
platform linux -- Python 3.5.2, pytest-3.0.2, py-1.4.31, pluggy-0.3.1
356356
rootdir: $REGENDOC_TMPDIR, inifile:
357357
collected 1 items
358358
@@ -364,7 +364,7 @@ and here is one that specifies exactly the environment needed::
364364

365365
$ pytest -E stage1
366366
======= test session starts ========
367-
platform linux -- Python 3.5.2, pytest-3.0.1, py-1.4.31, pluggy-0.3.1
367+
platform linux -- Python 3.5.2, pytest-3.0.2, py-1.4.31, pluggy-0.3.1
368368
rootdir: $REGENDOC_TMPDIR, inifile:
369369
collected 1 items
370370
@@ -485,7 +485,7 @@ then you will see two test skipped and two executed tests as expected::
485485

486486
$ pytest -rs # this option reports skip reasons
487487
======= test session starts ========
488-
platform linux -- Python 3.5.2, pytest-3.0.1, py-1.4.31, pluggy-0.3.1
488+
platform linux -- Python 3.5.2, pytest-3.0.2, py-1.4.31, pluggy-0.3.1
489489
rootdir: $REGENDOC_TMPDIR, inifile:
490490
collected 4 items
491491
@@ -499,7 +499,7 @@ Note that if you specify a platform via the marker-command line option like this
499499

500500
$ pytest -m linux2
501501
======= test session starts ========
502-
platform linux -- Python 3.5.2, pytest-3.0.1, py-1.4.31, pluggy-0.3.1
502+
platform linux -- Python 3.5.2, pytest-3.0.2, py-1.4.31, pluggy-0.3.1
503503
rootdir: $REGENDOC_TMPDIR, inifile:
504504
collected 4 items
505505
@@ -551,7 +551,7 @@ We can now use the ``-m option`` to select one set::
551551

552552
$ pytest -m interface --tb=short
553553
======= test session starts ========
554-
platform linux -- Python 3.5.2, pytest-3.0.1, py-1.4.31, pluggy-0.3.1
554+
platform linux -- Python 3.5.2, pytest-3.0.2, py-1.4.31, pluggy-0.3.1
555555
rootdir: $REGENDOC_TMPDIR, inifile:
556556
collected 4 items
557557
@@ -573,7 +573,7 @@ or to select both "event" and "interface" tests::
573573

574574
$ pytest -m "interface or event" --tb=short
575575
======= test session starts ========
576-
platform linux -- Python 3.5.2, pytest-3.0.1, py-1.4.31, pluggy-0.3.1
576+
platform linux -- Python 3.5.2, pytest-3.0.2, py-1.4.31, pluggy-0.3.1
577577
rootdir: $REGENDOC_TMPDIR, inifile:
578578
collected 4 items
579579

0 commit comments

Comments
 (0)