Skip to content

Merge features into master after 5.3 #6236

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 272 commits into from
Nov 19, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
272 commits
Select commit Hold shift + click to select a range
ab245cc
help: display default verbosity
blueyed Oct 18, 2019
de7c1aa
Merge pull request #5999 from blueyed/passenv-TERM
blueyed Oct 18, 2019
94c4dd6
help: display default verbosity (#5998)
blueyed Oct 18, 2019
cd753aa
ExceptionInfo.from_current: pass through exprinfo
blueyed Oct 19, 2019
5b88612
tests: harden/fix test_trial_error
blueyed Oct 19, 2019
15f9568
Improve/revisit CallInfo.__repr__
blueyed Oct 19, 2019
119bf66
ExceptionInfo.from_current: pass through exprinfo (#6002)
blueyed Oct 19, 2019
d12cdd3
Make InvocationParams.args a tuple
nicoddemus Oct 19, 2019
9b673bc
Improve/revisit CallInfo.__repr__ (#6007)
blueyed Oct 19, 2019
b5579d2
Make InvocationParams.args a tuple (#6008)
nicoddemus Oct 19, 2019
fbb7f66
Merge pull request #6005 from blueyed/harden-trial
blueyed Oct 20, 2019
83351a3
doc: improve help for filterwarnings
blueyed Jul 20, 2019
a6152db
setuponly: pytest_fixture_setup: use option directly
blueyed Oct 20, 2019
d91ff0a
assertrepr_compare: use safeformat with -vv
blueyed Oct 9, 2019
46fbf22
ci: Travis: cover verbose=1
blueyed Oct 16, 2019
803cc1f
Merge master into features
blueyed Oct 20, 2019
b47f57a
pytester: parseconfigure: remove duplicate config._ensure_unconfigure
blueyed Oct 20, 2019
995990c
Remove (rejected) comment from DontReadFromInput
blueyed Oct 21, 2019
554dba3
Multiple colors with terminal summary_stats
blueyed Apr 6, 2019
978c7ae
Merge pull request #6015 from blueyed/merge-master-into-features
blueyed Oct 21, 2019
3c14dd7
capture: improve message with DontReadFromInput's IOError
blueyed Oct 22, 2019
56cec5f
ci: use tox -vv
blueyed Oct 22, 2019
851fc02
ci: Travis: configure/restrict branch builds [ci skip]
blueyed Oct 22, 2019
0dd68ba
tests: mark test_meta as slow
blueyed Oct 22, 2019
f473421
Merge remote-tracking branch 'upstream/features' into blueyed/pdb-doc…
nicoddemus Oct 22, 2019
a51bb3e
Add CHANGELOG for #5630
nicoddemus Oct 22, 2019
bdadf12
Merge pull request #6030 from blueyed/tox-vv
blueyed Oct 22, 2019
8683293
Merge pull request #6017 from blueyed/DontReadFromInput-remove-comment
blueyed Oct 22, 2019
98fc937
Merge pull request #5630 from blueyed/pdb-doctest-bdbquit
blueyed Oct 22, 2019
215be88
Minor: help / direct usage of config (#6011)
nicoddemus Oct 22, 2019
bae22e1
Merge pull request #6016 from blueyed/pytest-_ensure_unconfigure-twice
blueyed Oct 22, 2019
5e7b2ae
doctest: pytest_unconfigure: reset RUNNER_CLASS
blueyed Oct 22, 2019
4af89bb
Merge pull request #5061 from blueyed/summary_stats-multi-color
blueyed Oct 23, 2019
b079dc2
Fix test_doctest_set_trace_quit on features
blueyed Oct 23, 2019
f0c2b07
Merge pull request #6046 from blueyed/fix-features
blueyed Oct 23, 2019
046aa0b
pytest.main: return ExitCode
blueyed Oct 21, 2019
2f589a9
pytester: runpytest_inprocess: use splitlines()
blueyed Oct 22, 2019
c71a2c9
Merge pull request #6023 from blueyed/main-exitcode
blueyed Oct 23, 2019
52b85f6
Update mypy 0.720 -> 0.740
bluetech Oct 23, 2019
1371b01
typing for ReprFailDoctest
blueyed Oct 23, 2019
db9e248
Merge pull request #6039 from blueyed/test_doctest_id
blueyed Oct 23, 2019
b30e7bd
Merge pull request #6045 from blueyed/minor
blueyed Oct 23, 2019
3246d8a
Merge pull request #6048 from bluetech/mypy-0.740
bluetech Oct 23, 2019
1984c10
Fix check_untyped_defs errors in doctest
bluetech Aug 30, 2019
583c2a2
Fix check_untyped_defs errors in logging
bluetech Sep 13, 2019
93c8822
Fix check_untyped_defs errors in warnings
bluetech Sep 13, 2019
5dca7a2
Fix check_untyped_defs errors in cacheprovider
bluetech Sep 13, 2019
0267b25
Fix some check_untyped_defs mypy errors in terminal
bluetech Sep 13, 2019
1787bff
Fix check_untyped_defs errors in capture
bluetech Sep 13, 2019
1cc1ac5
Remove some type: ignores fixed in typeshed
bluetech Oct 23, 2019
7beb520
Show the mnemonic of pytest.ExitCode in RunResult's repr
nicoddemus Oct 22, 2019
20ee883
Show the mnemonic of pytest.ExitCode in RunResult's repr (#6043)
nicoddemus Oct 23, 2019
6242777
Merge pull request #6041 from blueyed/pytester-splitlines
blueyed Oct 23, 2019
7a2d2d8
Merge pull request #5847 from bluetech/type-annotations-4
bluetech Oct 23, 2019
8316d43
Merge pull request #6028 from blueyed/DontReadFromInput-msg
blueyed Oct 23, 2019
432e555
assertrepr_compare: use safeformat with -vv (#5936)
nicoddemus Oct 23, 2019
92418b8
Change #5061 changelog to 'improvement'
nicoddemus Oct 24, 2019
45fc0d9
Merge pull request #6040 from blueyed/test_meta-slow
blueyed Oct 24, 2019
8ef4287
pytester: align prefixes
blueyed Oct 21, 2019
73a77c9
Change #5061 changelog to 'improvement' (#6051)
nicoddemus Oct 24, 2019
d1bc260
pytester: align prefixes (#6026)
nicoddemus Oct 24, 2019
fb0e8b9
Merge remote-tracking branch 'upstream/master' into mm
nicoddemus Oct 25, 2019
ed9fda8
Add tolerance to complex numbers
AnjoMan Oct 25, 2019
34a0212
Drop python 2 unicode tests for approx repr
AnjoMan Oct 25, 2019
82753be
terminal: report collection errors as "ERROR" in short summary
blueyed Oct 25, 2019
1f5b454
Add log-auto-indent option to control multiline formatting
earthman1 Oct 7, 2019
3c7fbe2
Document evaluating complex number for infinity
AnjoMan Oct 25, 2019
39066d5
Merge master into features (#6056)
nicoddemus Oct 25, 2019
b9df9a4
Merge pull request #6058 from AnjoMan/6057-tolerance-on-complex-approx
kalekundert Oct 25, 2019
f93f284
Support sys.pycache_prefix on py38
nicoddemus Sep 18, 2019
6f20b4b
Introduce compat.fspath
nicoddemus Sep 21, 2019
1ad4ca6
Support sys.pycache_prefix on py38 (#5864)
nicoddemus Oct 26, 2019
928587d
Change 5924 and 5936 changelog entries to improvement [ci skip]
nicoddemus Oct 26, 2019
59a59f3
Add type annotations to _pytest.pathlib
bluetech Oct 26, 2019
00a278c
Add type annotations to _pytest.tmpdir
bluetech Oct 26, 2019
be51417
tox: remove platform restriction, only used for pexpect
blueyed Oct 26, 2019
8e8a8fa
pytester: spawn: do not skip FreeBSD
blueyed Oct 26, 2019
7f1af84
Merge master into features
blueyed Oct 27, 2019
a92f49a
Merge pull request #6073 from blueyed/merge-master-into-features
blueyed Oct 27, 2019
81c3bc7
tests: harden test_disabled_capture_fixture
blueyed Oct 26, 2019
a4faac6
mark: move pytest_cmdline_main.tryfist into decorator
blueyed Oct 27, 2019
cbc39dd
Merge pull request #6079 from blueyed/tryfirst
blueyed Oct 27, 2019
886a3ad
pytester: typing
blueyed Oct 21, 2019
d863c30
Fix plurality mismatch for and in pytest terminal summary
MarcoGorelli Oct 27, 2019
820b747
tests: merge/remove test_dontreadfrominput_buffer_python3
blueyed Oct 27, 2019
716f532
Merge pull request #6070 from blueyed/pexpect-freebsd
blueyed Oct 28, 2019
ec27363
Merge pull request #6025 from blueyed/pytester-typing
blueyed Oct 28, 2019
3241253
tests: mock doctest.DocTestRunner to not use real pdb
blueyed Oct 27, 2019
a5bd19e
tests: lazily import doctest in approx tests
blueyed Oct 27, 2019
023dde8
ci: Travis: include pexpect in main py37 job
blueyed Oct 27, 2019
d6e324a
tests: conftest: handle tests using runpytest_subprocess as "slowest"
blueyed Oct 27, 2019
a4554e6
tests: speed up test_faulthandler.test_timeout
blueyed Oct 27, 2019
7f8bf4d
Merge pull request #6066 from bluetech/type-annotations-paths
bluetech Oct 28, 2019
60ceec6
tests: fix testing/test_capture.py::test_typeerror_encodedfile_write
blueyed Oct 28, 2019
6d33f4c
Merge pull request #6076 from blueyed/runpytest_subprocess-slowest
blueyed Oct 28, 2019
e7898de
Merge pull request #6093 from blueyed/fix-flaky
blueyed Oct 28, 2019
cdc53da
Merge pull request #5990 from MarcoGorelli/plurality-matching
blueyed Oct 28, 2019
0225cb3
Merge pull request #6077 from blueyed/ci-remove-single-py37-pexpect
blueyed Oct 28, 2019
6d2caba
terminal: fix line offset with skip reports
blueyed Oct 29, 2019
8c21416
lsof_check: include exc with skip message
blueyed Oct 29, 2019
b99661b
Introduce --report-log option
nicoddemus Oct 16, 2019
09096f7
Remove 'experimental' status from report serialization hooks
nicoddemus Oct 26, 2019
3406857
Introduce --report-log (#5980)
nicoddemus Oct 30, 2019
7a96d94
Making it possible to access the pluginmanager in the pytest_addoptio…
Oct 30, 2019
0027908
Removing :py:func: and :ref: from changelog as it's not supported by …
Oct 30, 2019
f400804
Removing pluginmanager as parameter in definition of pytest_addoption…
Oct 30, 2019
7f851a2
Merge pull request #6032 from blueyed/ci-branches
blueyed Oct 31, 2019
0c7c26f
FSCollector: keep/use given fspath
blueyed Nov 2, 2019
0947ecd
Change 5924 and 5936 changelog entries to improvement (#6065)
nicoddemus Nov 2, 2019
6df4d07
Merge pull request #6067 from blueyed/harden-test
blueyed Nov 2, 2019
3fb9698
Merge pull request #6059 from blueyed/collect-error-short-summary
blueyed Nov 2, 2019
9303de8
Fix error in newly introduced test_collecterror
MarcoGorelli Nov 3, 2019
dc30d78
Add type annotations to _pytest._io.saferepr
bluetech Nov 3, 2019
18d181f
Remove dead code in _pytest.assertion.util._diff_text
bluetech Nov 3, 2019
7d3ce37
Add type annotations to _pytest.assertion.util
bluetech Nov 3, 2019
68dbc24
test_group_warnings_by_message: ignore own PytestExperimentalApiWarning
blueyed Nov 3, 2019
9f800b2
test_terminal: reduce number of tests (single --fulltrace param)
blueyed Nov 3, 2019
08c25b7
Merge pull request #6122 from bluetech/type-annotations-6
bluetech Nov 4, 2019
d53794f
Merge pull request #6125 from blueyed/upstream-test_terminal-fulltrace
blueyed Nov 4, 2019
0d79061
Color percentage indicator according to color of final line
MarcoGorelli Oct 30, 2019
741f0fe
typing around Node.location, reportinfo, repr_excinfo etc
blueyed Nov 4, 2019
cab29dc
Merge pull request #6124 from blueyed/test_group_warnings_by_message-…
blueyed Nov 5, 2019
0794289
Merge pull request #6129 from blueyed/typing
blueyed Nov 5, 2019
262ed56
tests: clean up chmod-related tests to fix rm_rf warnings
tarpas Nov 5, 2019
dc2c513
Revert "tests: filterwarnings: do not crash with "(rm_rf)" warning"
blueyed Nov 5, 2019
9309ae2
Use try/finally to ensure chmod is run, filter warning
blueyed Nov 5, 2019
d809692
Fix for Python 3.5 not handling LocalPath
blueyed Nov 5, 2019
00f6749
Merge pull request #6107 from MarcoGorelli/color-percentage-indicator
blueyed Nov 5, 2019
e7320c6
Merge pull request #5926 from AtakamaLLC/optional-multiline
blueyed Nov 5, 2019
ce3d431
assert: fix _compare_eq_iterable: re-format both sides
blueyed Nov 6, 2019
9071a2a
Merge pull request #6119 from blueyed/FSCollector-fspath
blueyed Nov 6, 2019
eb4b3ce
Merge pull request #6084 from blueyed/merge-rm
blueyed Nov 6, 2019
0485b07
Merge pull request #6071 from blueyed/tests-doctest-mock
blueyed Nov 6, 2019
01769b1
Merge pull request #6100 from blueyed/fix-skip-offset
blueyed Nov 6, 2019
92b436c
Merge pull request #6136 from blueyed/fix-rm_rf-tests
blueyed Nov 6, 2019
4e45472
Merge master into features
blueyed Nov 6, 2019
8dcee39
Merge pull request #6103 from blueyed/lsof_check
blueyed Nov 6, 2019
74f4ec5
Making it possible to access the pluginmanager in the pytest_ad… (#6106)
nicoddemus Nov 6, 2019
5738d18
[RDY] tox: remove platform restriction, only used for pexpect (#6068)
nicoddemus Nov 6, 2019
fe429d4
assert: fix _compare_eq_iterable: re-format both sides (#6137)
blueyed Nov 6, 2019
5be3a9b
tests: speed up test_faulthandler.test_timeout (#6075)
blueyed Nov 6, 2019
eb7a4e3
saferepr: handle BaseExceptions
blueyed Oct 23, 2019
fee7c7b
py38: do not call None() directly
blueyed Nov 6, 2019
c4a110b
Session: collect: keep/use already parsed initialpart
blueyed Nov 2, 2019
0c0d33f
Session: collect: keep/use already parsed initialpart (#6120)
blueyed Nov 7, 2019
cb21a8d
test_source: do not instantiate Source objects during collection
blueyed Nov 7, 2019
e8a3d1a
Fix test_trace_with_parametrize_handles_shared_fixtureinfo for colors
blueyed Nov 7, 2019
5c00226
test_iterable_full_diff: use test ids
blueyed Nov 7, 2019
dd6cf7c
test_exc_chain_repr_without_traceback: use ids
blueyed Nov 7, 2019
dd852de
_perform_collect: remove comment about untested code
blueyed Nov 6, 2019
b268463
Merge master into features (#6111)
blueyed Nov 7, 2019
ab10165
saferepr: handle BaseExceptions (#6047)
blueyed Nov 7, 2019
8aa0809
on_rm_rf_error: ignore os.open (no warning)
blueyed Oct 27, 2019
2e5cf1c
Fix order of format args with warning
blueyed Oct 28, 2019
2adc84e
changelog
blueyed Nov 7, 2019
b2537b2
Add type annotations to _pytest.warning_types
bluetech Nov 3, 2019
58f2849
Add type annotations to _pytest._code.source
bluetech Nov 3, 2019
265a9eb
Add type annotations to some of _pytest.pytester
bluetech Nov 6, 2019
14eaa05
Merge pull request #6143 from blueyed/test_source
blueyed Nov 7, 2019
f11237b
_perform_collect: remove comment about untested code (#6144)
blueyed Nov 7, 2019
19b2f4b
tests: use ids (#6145)
blueyed Nov 7, 2019
e670ff7
Merge pull request #6141 from bluetech/type-annotations-7
bluetech Nov 7, 2019
45c4a8f
Use atomicrewrites only on Windows
blueyed Nov 7, 2019
4946cc8
Add --co option to collect-only
nnrepos Nov 1, 2019
0cf2002
Explicitly implement pytest_assertrepr_compare in assertion plugin
nicoddemus Nov 6, 2019
7ed3399
on_rm_rf_error: ignore os.open (no warning) (#6074)
nicoddemus Nov 7, 2019
40626f4
Update changelog/6148.improvement.rst
blueyed Nov 7, 2019
09709bb
Use atomicrewrites only on Windows (#6148)
blueyed Nov 7, 2019
3b24340
Explicitly implement pytest_assertrepr_compare in assertion plu… (#6140)
nicoddemus Nov 7, 2019
6ad9571
add --co option to collect-only (#6116)
nicoddemus Nov 7, 2019
cc503c1
_compare_eq_iterable: use AlwaysDispatchingPrettyPrinter
blueyed Nov 8, 2019
c22ce1a
parametrize: allow __name__ id for modules or other objects as well
grlee77 Nov 8, 2019
cc6c5e1
update AUTHORS list
grlee77 Nov 8, 2019
db82432
add minimal test case
grlee77 Nov 8, 2019
984d90a
Drop redundant custom MarkDecorator __eq__ implementation
bluetech Nov 7, 2019
84b2c81
Drop the "alias" helper used in MarkDecorator
bluetech Nov 7, 2019
0489104
Two minor tweaks in MarkDecorator's implementation (#6150)
nicoddemus Nov 8, 2019
c16b121
Add CHANGELOG for #6152
nicoddemus Nov 8, 2019
245e1f1
Merge pull request #6152 from grlee77/module_name_in_id
nicoddemus Nov 8, 2019
28edbaa
showversion: no need for `py.path.local`
blueyed Nov 7, 2019
96c315e
showversion: no need for `py.path.local` (#6163)
blueyed Nov 9, 2019
0bbc032
[WIP] typing around terminal
blueyed Nov 8, 2019
710e3c4
typing around terminal (#6157)
blueyed Nov 9, 2019
42a46ea
Add a @cached_property implementation
bluetech Nov 6, 2019
abcedd6
_compare_eq_iterable: use AlwaysDispatchingPrettyPrinter (#6151)
blueyed Nov 10, 2019
3ef8aa8
A bit more typing around Node
blueyed Nov 9, 2019
b352e34
Merge pull request #6149 from bluetech/cached-property
bluetech Nov 10, 2019
4c7d971
filterwarnings: ignore DeprecationWarning from nose
blueyed Nov 12, 2019
fc1c015
tests: remove test_nested_marks (xfail)
blueyed Nov 12, 2019
dad4985
A bit more typing around Node (#6167)
blueyed Nov 12, 2019
86e9ae3
pytester: assert_outcomes: use/set __tracebackhide__
blueyed Nov 12, 2019
1b84f09
Merge pull request #6170 from blueyed/imp
nicoddemus Nov 12, 2019
e2022a6
pytester: assert_outcomes: use/set __tracebackhide__ (#6172)
blueyed Nov 12, 2019
6ddf7c3
pytester: Hookrecorder: improve assertoutcome
blueyed Nov 13, 2019
b06f33f
terminal: report ``session.shouldfail`` reason (``-x``)
blueyed Nov 13, 2019
c232366
Merge pull request #6171 from blueyed/rm-xfail
blueyed Nov 13, 2019
a6e10cc
Merge pull request #6181 from blueyed/maxfail-terminal-upstream
blueyed Nov 13, 2019
f91bf48
Merge pull request #6176 from blueyed/assertoutcome
blueyed Nov 13, 2019
b3bb604
fix typo in _issue_warning_captured doc
blueyed Oct 23, 2019
55bc084
doc: s/_pytest.config.Parser/_pytest.config.argparsing.Parser/
blueyed Oct 31, 2019
772dfc4
terminal: fix/remove wrong typing for currentfspath
blueyed Nov 13, 2019
2a67637
Issue a warning to prepare change of 'junit_family' default value
nicoddemus Nov 13, 2019
2fc7d04
Merge pull request #6187 from blueyed/minor
blueyed Nov 13, 2019
99f4878
Issue a warning to prepare change of 'junit_family' default val… (#6186)
nicoddemus Nov 14, 2019
d2ea9e2
Remove report_log in favor of pytest-reportlog
nicoddemus Nov 14, 2019
5979837
Import Path from _pytest.pathlib for py35
blueyed Nov 15, 2019
1abb08d
tests: use sys.dont_write_bytecode
blueyed Nov 15, 2019
c49c61f
Import Path from _pytest.pathlib for py35 (#6193)
blueyed Nov 15, 2019
cc78444
Merge remote-tracking branch 'origin/master' into mm
asottile Nov 15, 2019
f760356
A few linting fixes
bluetech Nov 15, 2019
c7a83a0
Remove a PyPy version check for an unsupported version
bluetech Oct 26, 2019
04d68fb
Remove checks for Python2-only fields im_func and func_code
bluetech Nov 15, 2019
5bfe793
Remove unneeded getrawcode() calls from tests
bluetech Nov 15, 2019
e3ac44d
Inline the FuncargnamesCompatAttr compat helper
bluetech Nov 15, 2019
307add0
Simplify a FormattedExcinfo test
bluetech Nov 16, 2019
a649f15
Make Source explicitly implement __iter__()
bluetech Nov 16, 2019
562d481
Add type annotations to _pytest.compat
bluetech Nov 15, 2019
786d839
cacheprovider: set: use json.dumps + write
blueyed Nov 16, 2019
4b7148f
cacheprovider: set: use json.dumps + write (#6206)
blueyed Nov 16, 2019
5d247b9
pre-commit: upgrade black
blueyed Nov 16, 2019
b1a597a
Remove (now) unnecessary fmt: off
blueyed Nov 16, 2019
54a9545
re-run black
blueyed Nov 16, 2019
e379604
pre-commit: upgrade black (#6208)
blueyed Nov 16, 2019
eaa34a9
Add type annotations to _pytest._code.code
bluetech Nov 15, 2019
1b4623a
tests: revisit test_cacheprovider
blueyed Nov 15, 2019
b9a3ba1
test_cache_writefail_permissions: ignore any other plugins
blueyed Nov 15, 2019
fa578d7
Merge pull request #6205 from bluetech/type-annotations-8
bluetech Nov 17, 2019
bac6eeb
tests: revisit test_cacheprovider (#6199)
blueyed Nov 17, 2019
a2d4833
Merge pull request #6201 from asottile/mm
asottile Nov 17, 2019
f3a1024
Metafunc: remove unused _ids
blueyed Nov 18, 2019
91dec8e
Factor out _validate_parametrize_spelling
blueyed Nov 18, 2019
b412661
Factor out _validate_parametrize_spelling (#6221)
blueyed Nov 18, 2019
64d8910
Metafunc: remove unused _ids (#6220)
blueyed Nov 18, 2019
b461010
mypy: config: use mypy_path=src
blueyed Nov 18, 2019
2ad2fbc
Metafunc: remove hack for DefinitionMock
blueyed Nov 18, 2019
b4ff6b3
Metafunc: remove hack for DefinitionMock (#6223)
blueyed Nov 18, 2019
ed5f191
mypy: config: use mypy_path=src (#6222)
blueyed Nov 18, 2019
89eeefb
Merge pull request #6192 from nicoddemus/remove-reportlog-6180
nicoddemus Nov 18, 2019
f9feef6
Revert "ci: use tox -vv"
blueyed Nov 18, 2019
f38f2d4
minor: visit_Assert: move setting of `negation` out of branches
blueyed Nov 18, 2019
8d3e8b1
Revert "ci: use tox -vv" (#6226)
blueyed Nov 19, 2019
b820b7e
Merge pull request #6224 from blueyed/visit_Assert-minor-cleanup
blueyed Nov 19, 2019
4804d4b
python: remove unused pytest_make_parametrize_id hookimpl
blueyed Nov 19, 2019
d1e2d12
python: remove unused pytest_make_parametrize_id hookimpl (#6228)
blueyed Nov 19, 2019
4ad61cb
Improve check for misspelling of parametrize
blueyed Nov 19, 2019
21622d0
Merge remote-tracking branch 'upstream/master' into release-5.3.0
nicoddemus Nov 19, 2019
4b16b93
Preparing release version 5.3.0
nicoddemus Nov 19, 2019
be59827
Small fixes in the CHANGELOG for 5.3.0
nicoddemus Nov 19, 2019
1d368e0
Merge pull request #6231 from blueyed/param-spell
blueyed Nov 19, 2019
5b3867f
Release 5.3.0 (#6233)
nicoddemus Nov 19, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
exclude: doc/en/example/py2py3/test_py2.py
repos:
- repo: https://github.com/psf/black
rev: 19.3b0
rev: 19.10b0
hooks:
- id: black
args: [--safe, --quiet]
Expand Down Expand Up @@ -42,7 +42,7 @@ repos:
hooks:
- id: rst-backticks
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.720
rev: v0.740
hooks:
- id: mypy
files: ^(src/|testing/)
Expand Down
27 changes: 17 additions & 10 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,13 @@ install:
jobs:
include:
# OSX tests - first (in test stage), since they are the slower ones.
# Coverage for:
# - osx
# - verbose=1
- os: osx
osx_image: xcode10.1
language: generic
env: TOXENV=py37-xdist PYTEST_COVERAGE=1
env: TOXENV=py37-xdist PYTEST_COVERAGE=1 PYTEST_ADDOPTS=-v
before_install:
- which python3
- python3 -V
Expand All @@ -36,8 +39,13 @@ jobs:

# Full run of latest supported version, without xdist.
# Coverage for:
# - pytester's LsofFdLeakChecker
# - TestArgComplete (linux only)
# - numpy
# - old attrs
# - verbose=0
# - test_sys_breakpoint_interception (via pexpect).
- env: TOXENV=py37-pexpect PYTEST_COVERAGE=1
- env: TOXENV=py37-lsof-numpy-oldattrs-pexpect-twisted PYTEST_COVERAGE=1 PYTEST_ADDOPTS=
python: '3.7'

# Coverage tracking is slow with pypy, skip it.
Expand All @@ -47,14 +55,6 @@ jobs:
- env: TOXENV=py35-xdist
python: '3.5'

# Coverage for:
# - pytester's LsofFdLeakChecker
# - TestArgComplete (linux only)
# - numpy
# - old attrs
# Empty PYTEST_ADDOPTS to run this non-verbose.
- env: TOXENV=py37-lsof-oldattrs-numpy-twisted-xdist PYTEST_COVERAGE=1 PYTEST_ADDOPTS=

# Specialized factors for py37.
- env: TOXENV=py37-pluggymaster-xdist
- env: TOXENV=py37-freeze
Expand Down Expand Up @@ -125,3 +125,10 @@ notifications:
skip_join: true
email:
- pytest-commit@python.org

branches:
only:
- master
- features
- 4.6-maintenance
- /^\d+(\.\d+)+$/
3 changes: 3 additions & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ George Kussumoto
Georgy Dyuldin
Graham Horler
Greg Price
Gregory Lee
Grig Gheorghiu
Grigorii Eremeev (budulianin)
Guido Wesdorp
Expand Down Expand Up @@ -162,6 +163,7 @@ Manuel Krebber
Marc Schlaich
Marcelo Duarte Trevisani
Marcin Bachry
Marco Gorelli
Mark Abramowitz
Markus Unterwaditzer
Martijn Faassen
Expand All @@ -179,6 +181,7 @@ Michael Aquilina
Michael Birtwell
Michael Droettboom
Michael Goerz
Michael Krebs
Michael Seifert
Michal Wajszczuk
Mihai Capotă
Expand Down
202 changes: 202 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,208 @@ with advance notice in the **Deprecations** section of releases.

.. towncrier release notes start

pytest 5.3.0 (2019-11-19)
=========================

Deprecations
------------

- `#6179 <https://github.com/pytest-dev/pytest/issues/6179>`_: The default value of ``junit_family`` option will change to ``xunit2`` in pytest 6.0, given
that this is the version supported by default in modern tools that manipulate this type of file.

In order to smooth the transition, pytest will issue a warning in case the ``--junitxml`` option
is given in the command line but ``junit_family`` is not explicitly configured in ``pytest.ini``.

For more information, `see the docs <https://docs.pytest.org/en/latest/deprecations.html#junit-family-default-value-change-to-xunit2>`__.



Features
--------

- `#4488 <https://github.com/pytest-dev/pytest/issues/4488>`_: The pytest team has created the `pytest-reportlog <https://github.com/pytest-dev/pytest-reportlog>`__
plugin, which provides a new ``--report-log=FILE`` option that writes *report logs* into a file as the test session executes.

Each line of the report log contains a self contained JSON object corresponding to a testing event,
such as a collection or a test result report. The file is guaranteed to be flushed after writing
each line, so systems can read and process events in real-time.

The plugin is meant to replace the ``--resultlog`` option, which is deprecated and meant to be removed
in a future release. If you use ``--resultlog``, please try out ``pytest-reportlog`` and
provide feedback.


- `#4730 <https://github.com/pytest-dev/pytest/issues/4730>`_: When ``sys.pycache_prefix`` (Python 3.8+) is set, it will be used by pytest to cache test files changed by the assertion rewriting mechanism.

This makes it easier to benefit of cached ``.pyc`` files even on file systems without permissions.


- `#5515 <https://github.com/pytest-dev/pytest/issues/5515>`_: Allow selective auto-indentation of multiline log messages.

Adds command line option ``--log-auto-indent``, config option
``log_auto_indent`` and support for per-entry configuration of
indentation behavior on calls to ``logging.log()``.

Alters the default for auto-indention from ``on`` to ``off``. This
restores the older behavior that existed prior to v4.6.0. This
reversion to earlier behavior was done because it is better to
activate new features that may lead to broken tests explicitly
rather than implicitly.


- `#5914 <https://github.com/pytest-dev/pytest/issues/5914>`_: ``pytester`` learned two new functions, `no_fnmatch_line <https://docs.pytest.org/en/latest/reference.html#_pytest.pytester.LineMatcher.no_fnmatch_line>`_ and
`no_re_match_line <https://docs.pytest.org/en/latest/reference.html#_pytest.pytester.LineMatcher.no_re_match_line>`_.

The functions are used to ensure the captured text *does not* match the given
pattern.

The previous idiom was to use ``re.match``:

.. code-block:: python

assert re.match(pat, result.stdout.str()) is None

Or the ``in`` operator:

.. code-block:: python

assert text in result.stdout.str()

But the new functions produce best output on failure.


- `#6057 <https://github.com/pytest-dev/pytest/issues/6057>`_: Added tolerances to complex values when printing ``pytest.approx``.

For example, ``repr(pytest.approx(3+4j))`` returns ``(3+4j) ± 5e-06 ∠ ±180°``. This is polar notation indicating a circle around the expected value, with a radius of 5e-06. For ``approx`` comparisons to return ``True``, the actual value should fall within this circle.


- `#6061 <https://github.com/pytest-dev/pytest/issues/6061>`_: Added the pluginmanager as an argument to ``pytest_addoption``
so that hooks can be invoked when setting up command line options. This is
useful for having one plugin communicate things to another plugin,
such as default values or which set of command line options to add.



Improvements
------------

- `#5061 <https://github.com/pytest-dev/pytest/issues/5061>`_: Use multiple colors with terminal summary statistics.


- `#5630 <https://github.com/pytest-dev/pytest/issues/5630>`_: Quitting from debuggers is now properly handled in ``doctest`` items.


- `#5924 <https://github.com/pytest-dev/pytest/issues/5924>`_: Improved verbose diff output with sequences.

Before:

.. code-block::

E AssertionError: assert ['version', '...version_info'] == ['version', '...version', ...]
E Right contains 3 more items, first extra item: ' '
E Full diff:
E - ['version', 'version_info', 'sys.version', 'sys.version_info']
E + ['version',
E + 'version_info',
E + 'sys.version',
E + 'sys.version_info',
E + ' ',
E + 'sys.version',
E + 'sys.version_info']

After:

.. code-block::

E AssertionError: assert ['version', '...version_info'] == ['version', '...version', ...]
E Right contains 3 more items, first extra item: ' '
E Full diff:
E [
E 'version',
E 'version_info',
E 'sys.version',
E 'sys.version_info',
E + ' ',
E + 'sys.version',
E + 'sys.version_info',
E ]


- `#5936 <https://github.com/pytest-dev/pytest/issues/5936>`_: Display untruncated assertion message with ``-vv``.


- `#5990 <https://github.com/pytest-dev/pytest/issues/5990>`_: Fixed plurality mismatch in test summary (e.g. display "1 error" instead of "1 errors").


- `#6008 <https://github.com/pytest-dev/pytest/issues/6008>`_: ``Config.InvocationParams.args`` is now always a ``tuple`` to better convey that it should be
immutable and avoid accidental modifications.


- `#6023 <https://github.com/pytest-dev/pytest/issues/6023>`_: ``pytest.main`` now returns a ``pytest.ExitCode`` instance now, except for when custom exit codes are used (where it returns ``int`` then still).


- `#6026 <https://github.com/pytest-dev/pytest/issues/6026>`_: Align prefixes in output of pytester's ``LineMatcher``.


- `#6059 <https://github.com/pytest-dev/pytest/issues/6059>`_: Collection errors are reported as errors (and not failures like before) in the terminal's short test summary.


- `#6069 <https://github.com/pytest-dev/pytest/issues/6069>`_: ``pytester.spawn`` does not skip/xfail tests on FreeBSD anymore unconditionally.


- `#6097 <https://github.com/pytest-dev/pytest/issues/6097>`_: The "[XXX%]" indicator in the test summary is now colored according to the final (new) multi-colored line's main color.


- `#6116 <https://github.com/pytest-dev/pytest/issues/6116>`_: Added ``--co`` as a synonym to ``--collect-only``.


- `#6148 <https://github.com/pytest-dev/pytest/issues/6148>`_: ``atomicwrites`` is now only used on Windows, fixing a performance regression with assertion rewriting on Unix.


- `#6152 <https://github.com/pytest-dev/pytest/issues/6152>`_: Now parametrization will use the ``__name__`` attribute of any object for the id, if present. Previously it would only use ``__name__`` for functions and classes.


- `#6176 <https://github.com/pytest-dev/pytest/issues/6176>`_: Improved failure reporting with pytester's ``Hookrecorder.assertoutcome``.


- `#6181 <https://github.com/pytest-dev/pytest/issues/6181>`_: The reason for a stopped session, e.g. with ``--maxfail`` / ``-x``, now gets reported in the test summary.


- `#6206 <https://github.com/pytest-dev/pytest/issues/6206>`_: Improved ``cache.set`` robustness and performance.



Bug Fixes
---------

- `#2049 <https://github.com/pytest-dev/pytest/issues/2049>`_: Fixed ``--setup-plan`` showing inaccurate information about fixture lifetimes.


- `#2548 <https://github.com/pytest-dev/pytest/issues/2548>`_: Fixed line offset mismatch of skipped tests in terminal summary.


- `#6039 <https://github.com/pytest-dev/pytest/issues/6039>`_: The ``PytestDoctestRunner`` is now properly invalidated when unconfiguring the doctest plugin.

This is important when used with ``pytester``'s ``runpytest_inprocess``.


- `#6047 <https://github.com/pytest-dev/pytest/issues/6047>`_: BaseExceptions are now handled in ``saferepr``, which includes ``pytest.fail.Exception`` etc.


- `#6074 <https://github.com/pytest-dev/pytest/issues/6074>`_: pytester: fixed order of arguments in ``rm_rf`` warning when cleaning up temporary directories, and do not emit warnings for errors with ``os.open``.


- `#6189 <https://github.com/pytest-dev/pytest/issues/6189>`_: Fixed result of ``getmodpath`` method.



Trivial/Internal Changes
------------------------

- `#4901 <https://github.com/pytest-dev/pytest/issues/4901>`_: ``RunResult`` from ``pytester`` now displays the mnemonic of the ``ret`` attribute when it is a
valid ``pytest.ExitCode`` value.


pytest 5.2.4 (2019-11-15)
=========================

Expand Down
1 change: 0 additions & 1 deletion changelog/2049.bugfix.rst

This file was deleted.

1 change: 0 additions & 1 deletion changelog/6189.bugfix.rst

This file was deleted.

1 change: 1 addition & 0 deletions changelog/6231.improvement.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Improve check for misspelling of ``pytest.mark.parametrize``.
1 change: 1 addition & 0 deletions doc/5934.feature.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
``repr`` of ``ExceptionInfo`` objects has been improved to honor the ``__repr__`` method of the underlying exception.
1 change: 1 addition & 0 deletions doc/en/announce/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Release announcements
:maxdepth: 2


release-5.3.0
release-5.2.4
release-5.2.3
release-5.2.2
Expand Down
45 changes: 45 additions & 0 deletions doc/en/announce/release-5.3.0.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
pytest-5.3.0
=======================================

The pytest team is proud to announce the 5.3.0 release!

pytest is a mature Python testing tool with more than a 2000 tests
against itself, passing on many different interpreters and platforms.

This release contains a number of bugs fixes and improvements, so users are encouraged
to take a look at the CHANGELOG:

https://docs.pytest.org/en/latest/changelog.html

For complete documentation, please visit:

https://docs.pytest.org/en/latest/

As usual, you can upgrade from pypi via:

pip install -U pytest

Thanks to all who contributed to this release, among them:

* AnjoMan
* Anthony Sottile
* Anton Lodder
* Bruno Oliveira
* Daniel Hahler
* Gregory Lee
* Josh Karpel
* JoshKarpel
* Joshua Storck
* Kale Kundert
* MarcoGorelli
* Michael Krebs
* NNRepos
* Ran Benita
* TH3CHARLie
* Tibor Arpas
* Zac Hatfield-Dodds
* 林玮


Happy testing,
The Pytest Development Team
Loading