Bruno Oliveira
|
adc9ed85bc
|
Fix test_idval_hypothesis
|
2018-09-04 18:49:20 -03:00 |
Bruno Oliveira
|
4592def14d
|
Improve test_rewarn_functional
|
2018-09-04 17:02:56 -03:00 |
Bruno Oliveira
|
2e0a7cf78d
|
Revert to having just "runtest" as "when" parameter of the pytest_warning_captured hook
|
2018-09-04 17:01:23 -03:00 |
Bruno Oliveira
|
5a52acaa92
|
Make config no longer optional in parametrize id functions
|
2018-09-04 16:55:52 -03:00 |
Bruno Oliveira
|
6d497f2c77
|
Fix stacklevel for warning about Metafunc.addcall
|
2018-09-04 16:50:24 -03:00 |
Bruno Oliveira
|
b7560a8808
|
Keep backward compatibility for code as kw in Node.warn
|
2018-09-04 16:48:21 -03:00 |
Bruno Oliveira
|
d3ca739c00
|
Use explicit instances when calling warnings.warn_explicit
|
2018-09-04 16:29:48 -03:00 |
Bruno Oliveira
|
3db76ccf3d
|
Fix Cache.warn function to issue a "config" warning
|
2018-09-04 15:53:17 -03:00 |
Bruno Oliveira
|
438f7a1254
|
Add "setup", "call" and "teardown" values to "when" parameter of pytest_warning_captured hook
|
2018-09-04 15:53:17 -03:00 |
Bruno Oliveira
|
47bf58d69e
|
Make Node.warn support two forms, new and deprecated
As suggested during review, it now accepts two forms:
Node.warn(warning_instance) (recommended)
Node.warn(code, message) (deprecated)
|
2018-09-04 15:53:17 -03:00 |
Bruno Oliveira
|
5ef51262f7
|
Fix reference to PytestWarning in warningsfilter mark
|
2018-09-04 15:06:14 -03:00 |
Bruno Oliveira
|
a054aa4797
|
Issue assert rewrite warning if tuple >=1 as suggested in review
|
2018-09-04 14:45:48 -03:00 |
Bruno Oliveira
|
f1cfd10c94
|
Handle cache warnings in tests
|
2018-09-04 14:44:02 -03:00 |
Bruno Oliveira
|
d3f72ca202
|
Fix linting for warnings.rst
|
2018-09-04 14:33:41 -03:00 |
Bruno Oliveira
|
022c58bf64
|
Revert pytest_terminal_summary(tryfirst) in warnings module as this breaks tests
|
2018-09-04 14:26:34 -03:00 |
Bruno Oliveira
|
b42518acd5
|
Change std_warn to receive a single warning instance, addressed review suggestions
|
2018-09-04 14:20:42 -03:00 |
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
|
29bfa5efa4
|
Merge pull request #3925 from crazymerlyn/fix-exit-code
Fix exit code for command line errors
|
2018-09-04 11:53:00 -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 |
Bruno Oliveira
|
eec7081b8d
|
Make AssertionRewritingrHook use imp_find_module
|
2018-09-03 10:18:25 -03:00 |
CrazyMerlyn
|
b01704cce1
|
Fix exit code for command line errors
Fixes #3913
|
2018-09-03 04:16:35 +00:00 |
Ronny Pfannschmidt
|
15ede8aab8
|
Merge pull request #3924 from nicoddemus/enable-pypy
Reenable pypy now that scandir can be installed without a compiler
|
2018-09-02 17:34:21 +02:00 |
Bruno Oliveira
|
f7dc9b9fef
|
Merge pull request #3922 from nicoddemus/skip-xfail-docs-3219
Mention explicitly when pytest.skip and pytest.xfail can be called
|
2018-09-02 11:40:34 -03:00 |
Bruno Oliveira
|
dc13f0b469
|
Reenable pypy now that scandir can be installed without a compiler
Ref: benhoyt/scandir#105
Ref: #3111
|
2018-09-02 11:17:06 -03:00 |
Bruno Oliveira
|
a13c6a84df
|
Mention explicitly when pytest.skip and pytest.xfail can be called
Fix #3219
|
2018-09-02 10:42:05 -03:00 |
Bruno Oliveira
|
dfa713163a
|
Merge pull request #3921 from nicoddemus/use-constant
Use EXIT_USAGEERROR instead of magic number
|
2018-09-01 20:09:39 -03:00 |
Bruno Oliveira
|
90c00dfd54
|
Use EXIT_USAGEERROR instead of magic number
|
2018-09-01 12:03:28 -03:00 |