Daniel Hahler
038f1f94c2
Merge pull request #4524 from blueyed/merge-master
...
Merge master into features
2018-12-10 10:17:23 +01:00
Daniel Hahler
539d3dc34d
Merge branch 'fix-test_raises_exception_looks_iterable' into merge-master
2018-12-10 06:30:36 +01:00
Daniel Hahler
5ecbb02ace
tests: fix test_raises_exception_looks_iterable
...
Started to fail on py37-xdist between
https://travis-ci.org/pytest-dev/pytest/jobs/465498973 and
https://travis-ci.org/pytest-dev/pytest/jobs/465792343 , but could not
find a diff in versions (from the tox header), and both commits failed
locally.
2018-12-10 06:26:32 +01:00
Daniel Hahler
0db5ccb0dd
Merge master into features
2018-12-10 05:42:07 +01:00
Daniel Hahler
abb0dfcfa3
Merge pull request #4523 from blueyed/addopts-separate
...
Ensure that PYTEST_ADDOPTS and addopts ini values are valid by themselves.
2018-12-10 01:43:04 +01:00
Daniel Hahler
f3babf13ea
Ensure that PYTEST_ADDOPTS are valid by themselves
...
Fixes https://github.com/pytest-dev/pytest/issues/4265 .
2018-12-09 21:57:10 +01:00
Daniel Hahler
64ee1ee81b
tests: fix tests that require PYTEST_DISABLE_PLUGIN_AUTOLOAD to be unset
...
Fix pytest's own tests with PYTEST_DISABLE_PLUGIN_AUTOLOAD=1.
2018-12-09 12:06:18 +01:00
Bruno Oliveira
76884c73bf
Merge pull request #4146 from Tadaboody/give_hints_when_an_assertion_value_is_None_instead_of_a_boolean_3191
...
[#3191 ] Give hints when an assertion value is None instead of a boolean
2018-12-05 20:04:52 -02:00
Daniel Hahler
5ebacc49c6
Harden tests, fix doc/msg
2018-12-05 19:22:44 +01:00
Daniel Hahler
8a0ed7e2b3
Revisit changelog entry [ci skip]
2018-12-05 19:14:41 +01:00
Daniel Hahler
62b8f2f731
Update changelog [ci skip]
2018-12-05 19:07:10 +01:00
Tomer Keren
8fd60483ef
Don't insert warnings when not in a module
2018-12-05 19:49:54 +02:00
Tomer Keren
7a7ad0c120
Shorten docstring for warn_about_none_ast
2018-12-05 17:47:34 +02:00
Tomer Keren
41031fce2f
Address code review
2018-12-05 17:18:57 +02:00
Ronny Pfannschmidt
818aa4d343
Merge pull request #4509 from Tadaboody/doc_doctest_fixture_pitfall_1495
...
Document doctest fixture pitfalls
2018-12-05 15:40:45 +01:00
Tomer Keren
b7a64d6729
Create changelog file for 1495
2018-12-05 11:29:32 +02:00
Tomer Keren
cb52d17d07
Document doctest fixture pitfalls
2018-12-05 11:25:52 +02:00
Tomer Keren
e1e4b226c6
👌 Address code review
...
Edited the changelog for extra clarity, and to fire off auto-formatting
Oddly enough, keeping `filename='{filename!r}'` caused an error while
collecting tests, but getting rid of the single ticks fixed it
Hopefully closes #3191
2018-12-05 10:52:12 +02:00
Bruno Oliveira
26d27df6fc
Improve changelog message
2018-12-05 10:41:30 +02:00
Tomer Keren
3e6f1fa2db
Simplify warning creation by using ast.parse
...
in py2 it's a ast.Name where in py3 it's a ast.NamedConstant
Fixes namespace by using import from
2018-12-05 10:42:05 +02:00
Tomer Keren
aaf7f7fcca
Update changelog
2018-12-05 10:41:30 +02:00
Tomer Keren
e0c2ab1901
Fix tests not to assert a function that already asserts
...
Maybe there should be a warning about that too?
2018-12-05 10:41:30 +02:00
Tomer Keren
59a11b6a5d
Check for 'assert None' and warn appropriately
...
🐛 Fix warn ast bugs
🐛 Fix inner-ast imports by using importFrom
Alternetavly ast_call_helper could be retooled to use ast.attribute(...)
2018-12-05 10:41:42 +02:00
Tomer Keren
9fc9b2926f
Fix tests and add aditional cases
...
As requested by review.
👌 Address code review for tests
2018-12-05 10:41:30 +02:00
Tomer Keren
1654b77ca0
[ #3191 ] Set up tests to confirm warnings
2018-12-05 10:41:18 +02:00
Bruno Oliveira
60599b667e
Merge pull request #4505 from yashtodi94/patch-1
...
Rectified typo
2018-12-04 12:23:31 -02:00
Yash Todi
db32949c50
Rectified typo
2018-12-04 19:33:13 +05:30
feuillemorte
d237197de3
#4278 Added a CACHEDIR.TAG file to the cache directory
2018-12-04 13:49:08 +01:00
Ronny Pfannschmidt
86ccfaec22
Merge pull request #4503 from asottile/upgrade
...
Upgrade sphinx doc requirements
2018-12-04 07:49:07 +01:00
Anthony Sottile
ae92b8c624
Upgrade sphinx doc requirements
2018-12-03 15:30:45 -08:00
Anthony Sottile
5db46d2087
Merge pull request #4498 from asottile/deprecate_pytest_config
...
Deprecate pytest.config
2018-12-03 11:10:15 -08:00
Anthony Sottile
99d3fe22dc
Merge pull request #4501 from s0undt3ch/master
...
Test case for #4500 and respective fix #4487
2018-12-03 09:11:00 -08:00
Anthony Sottile
b88c3f8f82
Deprecate pytest.config
2018-12-03 09:01:42 -08:00
Pedro Algarvio
6da8befc74
Black suggestions
2018-12-03 12:58:22 +00:00
Pedro Algarvio
c1bdb07b2f
Fix change log entry
2018-12-03 12:17:14 +00:00
Pedro Algarvio
14024c7fc1
Test case for #4500 bug and respective fix #4487
2018-12-03 12:17:14 +00:00
Pedro Algarvio
517b8bc69e
Stop using the deprecated `\.warn()` log handler method
2018-12-03 11:52:33 +00:00
Daniel Hahler
ecc5c84c1e
Merge pull request #4487 from s0undt3ch/master
...
Logging done late enough might happen when capture already stopped.
2018-12-02 12:10:00 +01:00
Anthony Sottile
4a3c8e22d7
Merge pull request #4491 from nicoddemus/removal-links
...
Add links to the deprecations docs for the "removal" changelog entries
2018-12-01 21:05:32 -08:00
Pedro Algarvio
f792cc420c
Add changelog entry
2018-12-01 21:40:11 +00:00
Pedro Algarvio
f4d3ec6370
Logging done late enough might happen when capture already stopped.
2018-12-01 21:40:11 +00:00
Bruno Oliveira
a131f0acf6
Merge pull request #4490 from nicoddemus/remove-cached-setup-add-call
...
Remove cached_setup and Metafunc.addcall
2018-12-01 18:44:51 -02:00
Bruno Oliveira
4ffa13728d
Add links to the deprecations docs for the "removal" changelog entries
2018-12-01 17:33:48 -02:00
Bruno Oliveira
44b74c8c25
Merge pull request #4447 from nicoddemus/remove-result-log
...
Change resultlog deprecation to PytestDeprecatedWarning
2018-12-01 17:26:17 -02:00
Bruno Oliveira
40b85d7ee8
Remove Metafunc.addcall
...
Fix #3083
2018-12-01 16:41:59 -02:00
Bruno Oliveira
090f7ff449
Remove request.cached_setup
...
Fix #4489
2018-12-01 15:59:44 -02:00
Bruno Oliveira
b05061dcd2
Change deprecation type of --result-log to PytestDeprecationWarning
...
It was decided to deprecate this on a later date (see discussion in #4447 )
2018-12-01 14:29:50 -02:00
Bruno Oliveira
06dc6e3490
Merge pull request #4446 from nicoddemus/update-deprecations-docs
...
Update deprecations.rst now that we have removed a few features
2018-12-01 14:22:19 -02:00
Bruno Oliveira
63f38de38e
Merge remote-tracking branch 'upstream/features' into update-deprecations-docs
2018-12-01 14:16:20 -02:00
Bruno Oliveira
e0ba1cbf8d
Merge pull request #4299 from RonnyPfannschmidt/callinfo-sanity
...
refactor callinfo to simplify ctor magic
2018-11-30 14:07:40 -02:00