Update pytest in requirements-dev.txt from 2.8.0 to 2.9.2 #4
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Dependencies.io has updated pytest (a pypi dependency in
requirements-dev.txt
) from2.8.0
to2.9.2
.2.9.2
Bug Fixes
tests where one parameterize dimension was empty thanks Alex
Stapleton for the Report and
RonnyPfannschmidt for the
PR
astraw38 for reporting the issue
(#1496) and
tomviner for PR the
(#1524).
path in
pytest.main("-c your_absolute_path")
.aware of unicode/encoded bytes. Thanks
prusse-martin for the PR
(#1506).
pytest.mark.skip
mark when used in strict mode. Thankspquentin for the PR and
RonnyPfannschmidt for
showing how to fix the bug.
omarkohl for the PR.
--fixtures
to show all fixture definitions as opposed to justone per fixture name. Thanks to
hackebrot for the PR.
2.9.1
Bug Fixes
nicoddemus for the PR.
pytest.fail
with non-ascii characters raises an internal pytesterror. Thanks nicoddemus for the
PR.
junit parses report.nodeid incorrectly, when params IDs contain
::
. Thanks tomviner for the PR(#1431).
SyntaxErrors containing non-ascii lines at the point of failure
generated an internal py.test error. Thanks
asottile for the report and
nicoddemus for the PR.
When passing in a bytestring regex pattern to parameterize attempt
to decode it as utf-8 ignoring errors.
parametrized test nodes cannot be specified to run on the command
line.
better reporting for python 3.3+ chained exceptions
2.9.0
New Features
pytest.mark.skip
mark, which unconditionally skips markedtests. Thanks MichaelAquilina
for the complete PR
(#1040).
--doctest-glob
may now be passed multiple times in thecommand-line. Thanks jab and
nicoddemus for the PR.
-rp
and-rP
reporting options give the summary and fulloutput of passing tests, respectively. Thanks to
codewarrior0 for the PR.
pytest.mark.xfail
now has astrict
option, which makesXPASS
tests to fail the test suite (defaulting to
False
). There's also axfail_strict
ini option that can be used to configure itproject-wise. Thanks rabbbit for the
request and nicoddemus for the PR
(#1355).
Parser.addini
now supports options of typebool
. Thanksnicoddemus for the PR.
ALLOW_BYTES
doctest option. This stripsb
prefixes from bytestrings in doctest output (similar to
ALLOW_UNICODE
). Thanksjaraco for the request and
nicoddemus for the PR
(#1287).
KeyboardInterrupt
to use the--fulltrace
optionto show the errors. Fixes
#1366. Thanks
to hpk42 for the report and
RonnyPfannschmidt for the
PR.
IndexError
exceptions when getting exception sourcelocation. Fixes a pytest internal error for dynamically generated
code (fixtures and tests) where source lines are fake by intention.
Changes
Important:
py.code has been
merged into the
pytest
repository aspytest._code
. This decisionwas made because
py.code
had very few uses outsidepytest
andthe fact that it was in a different repository made it difficult to
fix bugs on its code in a timely manner. The team hopes with this to
be able to better refactor out and improve that code. This change
shouldn't affect users, but it is useful to let users aware if they
encounter any strange behavior.
Keep in mind that the code for
pytest._code
is private andexperimental, so you definitely should not import it explicitly!
Please note that the original
py.code
is still available inpylib.
pytest_enter_pdb
now optionally receives the pytest config object.Thanks nicoddemus for the PR.
Removed code and documentation for Python 2.5 or lower versions,
including removal of the obsolete
_pytest.assertion.oldinterpret
module. Thanks nicoddemus for the
PR (#1226).
Comparisons now always show up in full when
CI
orBUILD_NUMBER
is found in the environment, even when
-vv
isn't used. ThanksThe-Compiler for the PR.
--lf
and--ff
now support long names:--last-failed
and--failed-first
respectively. ThanksMichaelAquilina for the PR.
Added expected exceptions to
pytest.raises
fail message.Collection only displays progress ("collecting X items") when in a
terminal. This avoids cluttering the output when using
--color=yes
to obtain colors in CI integrations systems
(#1397).
Bug Fixes
-s
and-c
options should now work underxdist
;Config.fromdictargs
now represents its input much more faithfully.Thanks to bukzor for the complete PR
(#680).
support Python 3.5's
@
operator in assertion rewriting. ThanksShinkenjoe for report with test
case and tomviner for the PR.
(#1379). Thanks
biern for the PR.
docs
to describe all of the available options
(auto/long/short/line/native/no), with
auto
being the defaultsince v2.6. Thanks hackebrot for
the PR.
junit record_xml_property doesn't allow multiple records with same
name.
2.8.7
2.8.6
regression failing plugins combinations like pytest-pep8 +
pytest-flakes
--pdb
with standard I/O capture enabled. Thanks Erik M. Bray forthe PR.
monkeypatch
call raises anImportError
.Thanks David R. MacIver for the report and Bruno Oliveira for the
PR.
before entering pdb when
--pdb
is used instead of being thrownaway. Thanks Cal Leeming for the PR.
pytest_terminal_summary
are now properly displayed. Thanks Ionel Maries Cristian for the
report and Bruno Oliveira for the PR.
unicode. Thanks Jason R. Coombs for the report and Bruno Oliveira
for the PR.
Thanks Georgy Dyuldin for the PR.
2.8.5
collection could break pytest. PR by Alexei Kozlenok, thanks Ronny
Pfannschmidt and Bruno Oliveira for the review and help.
tree in objects Thanks Bruno Oliveira for the report and Ronny
Pfannschmidt for the PR
pytest.deprecated_call()
receiving multiplearguments (Regression introduced in 2.8.4). Thanks Alex Gaynor for
the report and Bruno Oliveira for the PR.
2.8.4
deprecated_call()
now works when the deprecatedfunction has been already called by another test in the same module.
Thanks Mikhail Chernykh for the report and Bruno Oliveira for the
PR.
--pastebin
option now works on Python 3. Thanks MehdyKhoshnoody for the PR.
--pastebin
now works correctly when captured outputcontains non-ascii characters. Thanks Bruno Oliveira for the PR.
__getattr__(). Thanks Florian Bruhin for the PR.
for the PR.
sdist
Bruno Oliveira for the PR.
2.8.3
TestCaseFunction to support the unittest.skip decorator on
functions and methods. Thanks Lee Kamentsky for the PR.
__getattr__(). Thanks Suor for the report and Bruno Oliveira /
Tom Viner for the PR.
correctly e.g. they are a callable instance of a class.
entry belongs to a file which is no longer available. Thanks Bruno
Oliveira for the PR.
so they stand out in the output. Thanks Gabriel Reis for the PR.
protection (thanks Florian)
2.8.2
byte strings to pytest.parametrize in Python 2. Thanks
Themanwithoutaplan for the report and Bruno Oliveira for the PR.
pytest.parametrize in Python 3. Thanks Paul Kehrer for the report
and Bruno Oliveira for the PR.
entry was generated by an exec() statement. Thanks Daniel Hahler,
Ashley C Straw, Philippe Gauthier and Pavel Savchenko for
contributing and Bruno Oliveira for the PR.
doctest modules. Thanks Sergey B Kirpichev and Vital Kudzelka for
contributing and Bruno Oliveira for the PR.
2.8.1
addhook. Thanks Simon Gomizelj for the PR.
or PendingDeprecationWarning. Before 2.8.0, it accepted any warning,
and 2.8.0 made it accept only DeprecationWarning (but not
PendingDeprecationWarning). Thanks Alex Gaynor for the issue and
Eric Hunsberger for the PR.
objects. This fixes an incompatibility with pytest-django. Thanks
Andreas Pelme, Bruno Oliveira and Ronny Pfannschmidt for
contributing and Holger Krekel for the fix.
gracefully. Thanks Bruno Oliveira for the PR.
"pytest-xdist" plugin, with test reports being assigned to the wrong
tests. Thanks Daniel Grunwald for the report and Bruno Oliveira for
the PR.
of master branch in git repo: "master" branch now keeps the
bugfixes, changes aimed for micro releases. "features" branch will
only be released with minor or major pytest releases.
Thanks Russel Winder.
ids to make them always serializable. Thanks Andy Freeland for the
report and Bruno Oliveira for the PR.
their ascii representation is used for the node id.
example. Thanks Ben Webb.
repr Thanks Mathieu Agopian for the report and Ronny Pfannschmidt
for the PR.
pytest-warnings