Bruno Oliveira
284a2d110f
Move warnings import to top level
2018-09-04 13:46:33 -03:00
Bruno Oliveira
9ae0a3cd85
Do not trigger warning about tuples being always True if the tuple has size != 2
2018-09-04 13:41:11 -03:00
Bruno Oliveira
615c671434
Connect string literals
2018-09-04 13:34:05 -03:00
Bruno Oliveira
016f8f1536
Improve get_fslocation_from_item's docstring
2018-09-04 11:48:11 -03:00
Bruno Oliveira
e9417be9df
Add comment about deprecation warnings being shown by default
2018-09-04 11:35:35 -03:00
Bruno Oliveira
c304998ed7
Remove commented out code
2018-09-04 11:35:35 -03:00
Bruno Oliveira
415a62e373
Fix typo in PytestExperimentalApiWarning
2018-09-04 11:35:35 -03:00
Bruno Oliveira
8ce3aeadbf
Move PytestExerimentalApiWarning to warning_types
2018-09-04 11:35:35 -03:00
Bruno Oliveira
b818314045
Improve docs for warnings capture and PEP-0506 remarks
2018-09-04 11:35:34 -03:00
Bruno Oliveira
56d414177a
Remove nodeid from messages for warnings generated by standard warnings
...
Standard warnings already contain the proper location, so we don't need
to also print the node id
2018-09-04 11:35:34 -03:00
Bruno Oliveira
0fffa6ba2f
Implement hack to issue warnings during config
...
Once we can capture warnings during the config stage, we can
then get rid of this function
Related to #2891
2018-09-04 11:35:34 -03:00
Bruno Oliveira
60499d221e
Add test to ensure that users can suppress internal warnings
2018-09-04 11:35:34 -03:00
Bruno Oliveira
9965ed84da
Show deprecation warnings by default if no other filters are configured
...
Fix #2908
2018-09-04 11:35:34 -03:00
Bruno Oliveira
7e13593452
Add CHANGELOG entries for #2452
...
Fix #2452
Fix #2684
2018-09-04 11:35:34 -03:00
Bruno Oliveira
208dd3aad1
Add docs for internal warnings and introduce PytestDeprecationWarning
...
Fix #2477
2018-09-04 11:35:34 -03:00
Bruno Oliveira
19a01c9849
Make PytestWarning and RemovedInPytest4Warning part of the public API
2018-09-04 11:35:34 -03:00
Bruno Oliveira
78ac7d99f5
Deprecate Config.warn and Node.warn, replaced by standard warnings
2018-09-04 11:35:34 -03:00
Bruno Oliveira
0c8dbdcd92
Fix existing tests now that we are using standard warnings
2018-09-04 11:35:34 -03:00
Bruno Oliveira
8e4501ee29
Use std_warn for warning about applying marks directly to parameters
2018-09-04 11:35:34 -03:00
Bruno Oliveira
0100f61b62
Start the laywork to capture standard warnings
2018-09-04 11:35:15 -03:00
Bruno Oliveira
1a9d913ee1
Capture and display warnings during collection
...
Fix #3251
2018-09-04 11:35:06 -03:00
Bruno Oliveira
51e32cf7cc
Remove Python 2.6 specific warning
2018-09-04 11:35:06 -03:00
Bruno Oliveira
3fcc4cdbd5
Make terminal capture pytest_warning_capture
...
pytest_logwarning is no longer emitted by the warnings plugin,
only ever emitted from .warn() functions in config and item
2018-09-04 11:35:06 -03:00
Bruno Oliveira
ffd47ceefc
Implement new pytest_warning_captured hook
2018-09-04 11:35:00 -03:00
Bruno Oliveira
10f21b423a
Remove assert for "reprec" because this is no longer set on the pluginmanager
...
It seems this has no effect since `pluggy` was developed as a separate
library.
2018-09-04 11:35:00 -03:00
Ronny Pfannschmidt
01df368d93
Merge pull request #3914 from nicoddemus/merge-master-into-features
...
Merge master into features
2018-08-31 15:31:00 +02:00
Bruno Oliveira
2256f2f04d
Remove test which is no longer required and improve test_lf_and_ff_prints_no_needless_message
...
* test_lf_and_ff_obey_verbosity is no longer necessary because
test_lf_and_ff_prints_no_needless_message already checks if the proper messages
are displayed when -q is used.
* Improve test_lf_and_ff_prints_no_needless_message so we also check that
the correct message is displayed when there are failures to run
2018-08-31 08:01:55 -03:00
Bruno Oliveira
11e591e442
Merge remote-tracking branch 'upstream/master' into merge-master-into-features
2018-08-30 19:55:23 -03:00
Bruno Oliveira
64f00683f2
Merge pull request #3912 from dhirensr/needless_message
...
Needless message printed with --failed-first and no failed tests #3853
2018-08-30 19:51:49 -03:00
Bruno Oliveira
84a033fd97
Remove extra newline
2018-08-30 19:48:47 -03:00
Bruno Oliveira
0183d46275
Improve CHANGELOG a bit
2018-08-30 19:44:04 -03:00
Bruno Oliveira
9bd4b0a05e
Merge pull request #3910 from hoefling/docfix
...
doc fix: raises accepts tuples instead of lists
2018-08-30 19:41:44 -03:00
Bruno Oliveira
f0e852b4db
Merge pull request #2800 from blueyed/coverage
...
Travis: report coverage with all builds
2018-08-30 19:41:22 -03:00
dhirensr
ade01b1f5b
T3853:Added changelog file
2018-08-30 16:03:18 +05:30
dhirensr
3035b2724d
T3853:removed needless message printed with --failed-first,--last-failed and no failed tests
2018-08-30 16:01:42 +05:30
hoefling
8c96eea583
doc fix: raises accepts tuples instead of lists ( fixes #3907 )
2018-08-30 00:19:59 +02:00
Bruno Oliveira
338953a25d
Merge pull request #3908 from nicoddemus/optimize-release
...
Skip the "test" stage when making a release
2018-08-29 18:53:36 -03:00
Anthony Sottile
f1bd46266b
Merge pull request #3909 from asottile/update_release
...
Update release procedure
2018-08-29 14:37:52 -07:00
Anthony Sottile
77cad3c436
Update release procedure [ci skip]
2018-08-29 14:13:08 -07:00
Bruno Oliveira
3ca70692de
Skip the "test" stage when making a release
...
Given that our guidelines demand that the CI have already passed, it seems
wasteful to run all those jobs again for the exact same commit.
As discussed in https://github.com/pytest-dev/pytest/pull/3906#issuecomment-417094481 ,
this will skip the "test" stage when building a tag for deployment.
2018-08-29 17:54:58 -03:00
Daniel Hahler
417516c378
squash! Travis: report coverage with all builds
...
doctesting: remove changedir
With coverage 5 we could use COVERAGE_RCFILE to make it find the
.coveragerc, or we could add `--rcfile` to _PYTEST_TOX_COVERAGE_RUN, but
I've thought that this should not be the job that has to test if
`--pyargs` actually works.
2018-08-29 22:53:20 +02:00
Daniel Hahler
f730291e67
Travis: report coverage with all builds
...
- Skips pypy for coverage, reports only py37 to coveralls
- tox: allow for TOXENV=py37-coverage
- tracks coverage in subprocesses, using coverage-enable-subprocess, and
parallel=1
- removes usedevelop with doctesting to match `--source` being used with
coverage
- keep coveralls for now, used with AppVeyor
2018-08-29 22:30:28 +02:00
Anthony Sottile
d76fb8345c
Merge pull request #3906 from asottile/release-3.7.4
...
Preparing release version 3.7.4
2018-08-29 13:03:34 -07:00
Anthony Sottile
aea962dc21
Preparing release version 3.7.4
2018-08-29 08:57:54 -07:00
Bruno Oliveira
4345efaffc
Merge pull request #3902 from stevepiercy/fix-pytest.org-links
...
Fix pytest.org links
2018-08-29 08:20:01 -03:00
Bruno Oliveira
bf47033169
Fix linting
2018-08-28 21:05:34 -03:00
Steve Piercy
37a65684d6
add changelog entry
2018-08-28 14:51:27 -07:00
Steve Piercy
eab5020e24
Fix hostname
2018-08-28 14:45:04 -07:00
Steve Piercy
8ef21f56d3
Fix 404
2018-08-28 14:42:16 -07:00
Steve Piercy
103d980b2d
Use https, save a redirect
2018-08-28 14:41:13 -07:00