@@ -54,7 +54,6 @@ Changes
54
54
.. _@mattduck : https://github.com/mattduck
55
55
.. _@wheerd : https://github.com/wheerd
56
56
.. _@fogo : https://github.com/fogo
57
- .. _@lesteve : https://github.com/lesteve
58
57
.. _@mandeep : https://github.com/mandeep
59
58
.. _@unsignedint : https://github.com/unsignedint
60
59
@@ -68,30 +67,63 @@ Changes
68
67
.. _#2147 : https://github.com/pytest-dev/pytest/issues/2147
69
68
.. _#2208 : https://github.com/pytest-dev/pytest/issues/2208
70
69
71
- 3.0.6.dev0 (unreleased)
70
+ 3.0.7 (unreleased)
72
71
=======================
73
72
74
73
*
75
74
75
+ *
76
+
77
+ *
78
+
79
+ *
80
+
81
+
82
+ 3.0.6 (2017-01-22)
83
+ ==================
84
+
85
+ * pytest no longer generates ``PendingDeprecationWarning `` from its own operations, which was introduced by mistake in version ``3.0.5 `` (`#2118 `_).
86
+ Thanks to `@nicoddemus `_ for the report and `@RonnyPfannschmidt `_ for the PR.
87
+
88
+
76
89
* pytest no longer recognizes coroutine functions as yield tests (`#2129 `_).
77
90
Thanks to `@malinoff `_ for the PR.
78
91
92
+ * Plugins loaded by the ``PYTEST_PLUGINS `` environment variable are now automatically
93
+ considered for assertion rewriting (`#2185 `_).
94
+ Thanks `@nicoddemus `_ for the PR.
95
+
79
96
* Improve error message when pytest.warns fails (`#2150 `_). The type(s) of the
80
97
expected warnings and the list of caught warnings is added to the
81
98
error message. Thanks `@lesteve `_ for the PR.
82
99
100
+ * Fix ``pytester `` internal plugin to work correctly with latest versions of
101
+ ``zope.interface `` (`#1989 `_). Thanks `@nicoddemus `_ for the PR.
102
+
103
+ * Assert statements of the ``pytester `` plugin again benefit from assertion rewriting (`#1920 `_).
104
+ Thanks `@RonnyPfannschmidt `_ for the report and `@nicoddemus `_ for the PR.
105
+
83
106
* Specifying tests with colons like ``test_foo.py::test_bar `` for tests in
84
107
subdirectories with ini configuration files now uses the correct ini file
85
108
(`#2148 `_). Thanks `@pelme `_.
86
109
87
- *
110
+ * Fail ``testdir.runpytest().assert_outcomes() `` explicitly if the pytest
111
+ terminal output it relies on is missing. Thanks to `@eli-b `_ for the PR.
112
+
88
113
114
+ .. _@lesteve : https://github.com/lesteve
89
115
.. _@malinoff : https://github.com/malinoff
90
116
.. _@pelme : https://github.com/pelme
117
+ .. _@eli-b : https://github.com/eli-b
118
+
119
+ .. _#2118 : https://github.com/pytest-dev/pytest/issues/2118
91
120
121
+ .. _#1989 : https://github.com/pytest-dev/pytest/issues/1989
122
+ .. _#1920 : https://github.com/pytest-dev/pytest/issues/1920
92
123
.. _#2129 : https://github.com/pytest-dev/pytest/issues/2129
93
124
.. _#2148 : https://github.com/pytest-dev/pytest/issues/2148
94
125
.. _#2150 : https://github.com/pytest-dev/pytest/issues/2150
126
+ .. _#2185 : https://github.com/pytest-dev/pytest/issues/2185
95
127
96
128
97
129
3.0.5 (2016-12-05)
@@ -761,7 +793,7 @@ time or change existing behaviors in order to make them less surprising/more use
761
793
Thanks `@astraw38 `_ for reporting the issue (`#1496 `_) and `@tomviner `_
762
794
for PR the (`#1524 `_).
763
795
764
- * Fix win32 path issue when puttinging custom config file with absolute path
796
+ * Fix win32 path issue when putting custom config file with absolute path
765
797
in ``pytest.main("-c your_absolute_path") ``.
766
798
767
799
* Fix maximum recursion depth detection when raised error class is not aware
@@ -1093,7 +1125,7 @@ time or change existing behaviors in order to make them less surprising/more use
1093
1125
1094
1126
- (experimental) adapt more SEMVER style versioning and change meaning of
1095
1127
master branch in git repo: "master" branch now keeps the bugfixes, changes
1096
- aimed for micro releases. "features" branch will only be be released
1128
+ aimed for micro releases. "features" branch will only be released
1097
1129
with minor or major pytest releases.
1098
1130
1099
1131
- Fix issue #766 by removing documentation references to distutils.
@@ -1227,7 +1259,7 @@ time or change existing behaviors in order to make them less surprising/more use
1227
1259
1228
1260
- new option ``--import-mode `` to allow to change test module importing
1229
1261
behaviour to append to sys.path instead of prepending. This better allows
1230
- to run test modules against installated versions of a package even if the
1262
+ to run test modules against installed versions of a package even if the
1231
1263
package under test has the same import root. In this example::
1232
1264
1233
1265
testing/__init__.py
@@ -1385,7 +1417,7 @@ time or change existing behaviors in order to make them less surprising/more use
1385
1417
explanations. Thanks Carl Meyer for the report and test case.
1386
1418
1387
1419
- fix issue553: properly handling inspect.getsourcelines failures in
1388
- FixtureLookupError which would lead to to an internal error,
1420
+ FixtureLookupError which would lead to an internal error,
1389
1421
obfuscating the original problem. Thanks talljosh for initial
1390
1422
diagnose/patch and Bruno Oliveira for final patch.
1391
1423
@@ -1528,7 +1560,7 @@ time or change existing behaviors in order to make them less surprising/more use
1528
1560
1529
1561
- fix conftest related fixture visibility issue: when running with a
1530
1562
CWD outside of a test package pytest would get fixture discovery wrong.
1531
- Thanks to Wolfgang Schnerring for figuring out a reproducable example.
1563
+ Thanks to Wolfgang Schnerring for figuring out a reproducible example.
1532
1564
1533
1565
- Introduce pytest_enter_pdb hook (needed e.g. by pytest_timeout to cancel the
1534
1566
timeout when interactively entering pdb). Thanks Wolfgang Schnerring.
@@ -1727,7 +1759,7 @@ time or change existing behaviors in order to make them less surprising/more use
1727
1759
- fix issue429: comparing byte strings with non-ascii chars in assert
1728
1760
expressions now work better. Thanks Floris Bruynooghe.
1729
1761
1730
- - make capfd/capsys.capture private, its unused and shouldnt be exposed
1762
+ - make capfd/capsys.capture private, its unused and shouldn't be exposed
1731
1763
1732
1764
1733
1765
2.5.1 (2013-12-17)
@@ -1784,7 +1816,7 @@ time or change existing behaviors in order to make them less surprising/more use
1784
1816
to problems for more than >966 non-function scoped parameters).
1785
1817
1786
1818
- fix issue290 - there is preliminary support now for parametrizing
1787
- with repeated same values (sometimes useful to to test if calling
1819
+ with repeated same values (sometimes useful to test if calling
1788
1820
a second time works as with the first time).
1789
1821
1790
1822
- close issue240 - document precisely how pytest module importing
@@ -1998,7 +2030,7 @@ new features:
1998
2030
1999
2031
- fix issue322: tearDownClass is not run if setUpClass failed. Thanks
2000
2032
Mathieu Agopian for the initial fix. Also make all of pytest/nose
2001
- finalizer mimick the same generic behaviour: if a setupX exists and
2033
+ finalizer mimic the same generic behaviour: if a setupX exists and
2002
2034
fails, don't run teardownX. This internally introduces a new method
2003
2035
"node.addfinalizer()" helper which can only be called during the setup
2004
2036
phase of a node.
@@ -2117,11 +2149,11 @@ Bug fixes:
2117
2149
(thanks Adam Goucher)
2118
2150
2119
2151
- Issue 265 - integrate nose setup/teardown with setupstate
2120
- so it doesnt try to teardown if it did not setup
2152
+ so it doesn't try to teardown if it did not setup
2121
2153
2122
- - issue 271 - dont write junitxml on slave nodes
2154
+ - issue 271 - don't write junitxml on slave nodes
2123
2155
2124
- - Issue 274 - dont try to show full doctest example
2156
+ - Issue 274 - don't try to show full doctest example
2125
2157
when doctest does not know the example location
2126
2158
2127
2159
- issue 280 - disable assertion rewriting on buggy CPython 2.6.0
@@ -2157,7 +2189,7 @@ Bug fixes:
2157
2189
- allow to specify prefixes starting with "_" when
2158
2190
customizing python_functions test discovery. (thanks Graham Horler)
2159
2191
2160
- - improve PYTEST_DEBUG tracing output by puting
2192
+ - improve PYTEST_DEBUG tracing output by putting
2161
2193
extra data on a new lines with additional indent
2162
2194
2163
2195
- ensure OutcomeExceptions like skip/fail have initialized exception attributes
@@ -2206,7 +2238,7 @@ Bug fixes:
2206
2238
- fix issue209 - reintroduce python2.4 support by depending on newer
2207
2239
pylib which re-introduced statement-finding for pre-AST interpreters
2208
2240
2209
- - nose support: only call setup if its a callable, thanks Andrew
2241
+ - nose support: only call setup if it's a callable, thanks Andrew
2210
2242
Taumoefolau
2211
2243
2212
2244
- fix issue219 - add py2.4-3.3 classifiers to TROVE list
@@ -2302,7 +2334,7 @@ Bug fixes:
2302
2334
2303
2335
- fix issue128: show captured output when capsys/capfd are used
2304
2336
2305
- - fix issue179: propperly show the dependency chain of factories
2337
+ - fix issue179: properly show the dependency chain of factories
2306
2338
2307
2339
- pluginmanager.register(...) now raises ValueError if the
2308
2340
plugin has been already registered or the name is taken
@@ -2343,7 +2375,7 @@ Bug fixes:
2343
2375
2344
2376
- don't show deselected reason line if there is none
2345
2377
2346
- - py.test -vv will show all of assert comparisations instead of truncating
2378
+ - py.test -vv will show all of assert comparisons instead of truncating
2347
2379
2348
2380
2.2.4 (2012-05-22)
2349
2381
==================
@@ -2354,7 +2386,7 @@ Bug fixes:
2354
2386
- fix issue with unittest: now @unittest.expectedFailure markers should
2355
2387
be processed correctly (you can also use @pytest.mark markers)
2356
2388
- document integration with the extended distribute/setuptools test commands
2357
- - fix issue 140: propperly get the real functions
2389
+ - fix issue 140: properly get the real functions
2358
2390
of bound classmethods for setup/teardown_class
2359
2391
- fix issue #141: switch from the deceased paste.pocoo.org to bpaste.net
2360
2392
- fix issue #143: call unconfigure/sessionfinish always when
@@ -2365,7 +2397,7 @@ Bug fixes:
2365
2397
2.2.3 (2012-02-05)
2366
2398
==================
2367
2399
2368
- - fix uploaded package to only include neccesary files
2400
+ - fix uploaded package to only include necessary files
2369
2401
2370
2402
2.2.2 (2012-02-05)
2371
2403
==================
@@ -2506,7 +2538,7 @@ Bug fixes:
2506
2538
- don't require zlib (and other libs) for genscript plugin without
2507
2539
--genscript actually being used.
2508
2540
2509
- - speed up skips (by not doing a full traceback represenation
2541
+ - speed up skips (by not doing a full traceback representation
2510
2542
internally)
2511
2543
2512
2544
- fix issue37: avoid invalid characters in junitxml's output
@@ -2554,9 +2586,9 @@ Bug fixes:
2554
2586
this.
2555
2587
2556
2588
- fixed typos in the docs (thanks Victor Garcia, Brianna Laugher) and particular
2557
- thanks to Laura Creighton who also revieved parts of the documentation.
2589
+ thanks to Laura Creighton who also reviewed parts of the documentation.
2558
2590
2559
- - fix slighly wrong output of verbose progress reporting for classes
2591
+ - fix slightly wrong output of verbose progress reporting for classes
2560
2592
(thanks Amaury)
2561
2593
2562
2594
- more precise (avoiding of) deprecation warnings for node.Class|Function accesses
@@ -2617,7 +2649,7 @@ Bug fixes:
2617
2649
2618
2650
- pytest-2.0 is now its own package and depends on pylib-2.0
2619
2651
- new ability: python -m pytest / python -m pytest.main ability
2620
- - new python invcation : pytest.main(args, plugins) to load
2652
+ - new python invocation : pytest.main(args, plugins) to load
2621
2653
some custom plugins early.
2622
2654
- try harder to run unittest test suites in a more compatible manner
2623
2655
by deferring setup/teardown semantics to the unittest package.
@@ -2856,7 +2888,7 @@ Bug fixes:
2856
2888
- extend and refine xfail mechanism:
2857
2889
``@py.test.mark.xfail(run=False) `` do not run the decorated test
2858
2890
``@py.test.mark.xfail(reason="...") `` prints the reason string in xfail summaries
2859
- specifiying ``--runxfail `` on command line virtually ignores xfail markers
2891
+ specifying ``--runxfail `` on command line virtually ignores xfail markers
2860
2892
2861
2893
- expose (previously internal) commonly useful methods:
2862
2894
py.io.get_terminal_with() -> return terminal width
@@ -3081,7 +3113,7 @@ Bug fixes:
3081
3113
3082
3114
* add the ability to specify a path for py.lookup to search in
3083
3115
3084
- * fix a funcarg cached_setup bug probably only occuring
3116
+ * fix a funcarg cached_setup bug probably only occurring
3085
3117
in distributed testing and "module" scope with teardown.
3086
3118
3087
3119
* many fixes and changes for making the code base python3 compatible,
@@ -3347,10 +3379,10 @@ serve as a reference for developers.
3347
3379
* fixed issue with 2.5 type representations in py.test [45483, 45484]
3348
3380
* made that internal reporting issues displaying is done atomically in py.test
3349
3381
[45518]
3350
- * made that non-existing files are igored by the py.lookup script [45519]
3382
+ * made that non-existing files are ignored by the py.lookup script [45519]
3351
3383
* improved exception name creation in py.test [45535]
3352
3384
* made that less threads are used in execnet [merge in 45539]
3353
- * removed lock required for atomical reporting issue displaying in py.test
3385
+ * removed lock required for atomic reporting issue displaying in py.test
3354
3386
[45545]
3355
3387
* removed globals from execnet [45541, 45547]
3356
3388
* refactored cleanup mechanics, made that setDaemon is set to 1 to make atexit
0 commit comments