Bruno Oliveira
d8fa434d39
Remove Python 2-only workaround
2019-06-15 10:45:16 -03:00
Bruno Oliveira
177af032d2
Remove unused/unneeded code
2019-06-15 10:45:16 -03:00
Bruno Oliveira
355eb5adfb
Small cleanups on _pytest.compat
...
Small improvements and cleanups
2019-06-15 10:06:37 -03:00
Ronny Pfannschmidt
2bd619ecb0
add changelog
2019-06-15 07:05:18 +02:00
Ronny Pfannschmidt
2b92fee1c3
initial conversion of exit codes to enum
2019-06-15 06:48:00 +02:00
Anthony Sottile
240828d912
Merge pull request #5448 from nicoddemus/add-hooks
...
Remove broken/unused PytestPluginManager.addhooks
2019-06-14 21:45:11 -07:00
Bruno Oliveira
c94e9b6145
Fix test docstring
2019-06-13 23:10:13 -03:00
Bruno Oliveira
7513d87b15
Remove broken/unused PytestPluginManager.addhooks
...
The function has been deprecated for ages and
the PLUGIN_MANAGER_ADDHOOKS constant doesn't even exist since 3.0.
Because the function is clearly broken, this change doesn't even
require a CHANGELOG.
2019-06-13 19:55:13 -03:00
Bruno Oliveira
bc345ac980
Remove handling of collection errors by --sw
...
Since then pytest itself adopted the behavior of interrupting
the test session on collection errors, so --sw no longer needs
to handle this.
The --sw behavior seems have been implemented when pytest
would continue execution even if there were collection errors.
2019-06-13 17:19:36 -03:00
Bruno Oliveira
4cc05a657d
Fix --sw crash when first file in cmdline fails to collect
...
Fix #5444
2019-06-13 16:47:01 -03:00
Thomas Grainger
ad15efc7ea
add test for stepwise attribute error Refs: #5444
2019-06-13 12:39:49 +01:00
Bruno Oliveira
e3dcf1f39d
Merge pull request #5442 from patriksevallius/master
...
Add missing 'e' to test_mod(e).
2019-06-13 08:23:53 -03:00
patriksevallius
701d0351a6
Add missing 'e' to test_mod(e).
2019-06-13 06:01:30 +02:00
Bruno Oliveira
bad7ab721a
Minor: tox: coverage: use -m with coverage-report ( #5427 )
...
Minor: tox: coverage: use -m with coverage-report
2019-06-12 19:44:15 -03:00
Anthony Sottile
ede8b87560
Merge pull request #5438 from nicoddemus/result-log-deprecation
...
Postpone removal of --result-log to pytest 6.0
2019-06-12 10:45:02 -07:00
Bruno Oliveira
52780f39ce
Postpone removal of --result-log to pytest 6.0
...
As we did not provide an alternative yet, it is better to postpone
the actual removal until we have provided a suitable and stable
alternative.
Related to #4488
2019-06-12 08:26:11 -03:00
Bruno Oliveira
d637d1b2ac
Merge pull request #5435 from asottile/release-4.6.3 ( #5436 )
...
Merge pull request #5435 from asottile/release-4.6.3
2019-06-11 21:24:45 -03:00
Anthony Sottile
47447963b7
Merge pull request #5437 from asottile/reenable_pypy3
...
re-enable pypy3
2019-06-11 12:21:53 -07:00
Anthony Sottile
f586d627b3
re-enable pypy3 now that importlib-metadata 0.18 is released
2019-06-11 10:54:16 -07:00
Anthony Sottile
108fad1ac0
Revert "ci: Travis: remove pypy3 job for now"
...
This reverts commit 47022b36cb
.
2019-06-11 10:53:32 -07:00
Anthony Sottile
18c2ff6625
Merge pull request #5435 from asottile/release-4.6.3
...
Preparing release version 4.6.3
2019-06-11 09:59:05 -07:00
Zac-HD
c5a549b5bb
Emit warning for broken object
2019-06-09 22:17:40 +10:00
Daniel Hahler
75cda6de53
tox: coverage: use -m with coverage-report
2019-06-09 12:51:32 +02:00
Daniel Hahler
e868bb647d
remove commented code
2019-06-09 12:51:32 +02:00
Daniel Hahler
40c5a9d9f2
Merge pull request #5409 from blueyed/twisted
...
ci: optimize twisted/numpy related jobs
2019-06-09 12:49:41 +02:00
Anthony Sottile
83d18096d4
Merge pull request #5421 from nicoddemus/raises-warning-message
...
Link deprecation docs pytest.raises 'message' warning
2019-06-08 12:44:40 -07:00
Daniel Hahler
28aa38ece6
ci: optimize twisted/pexpect related jobs
...
- tox: use twisted as dep only
- Azure: move twisted/numpy to main py37 job
- Travis: move twisted to main py37 build
2019-06-08 19:21:56 +02:00
Bruno Oliveira
f0cee593f2
Link deprecation docs pytest.raises 'message' warning
...
As commented in https://github.com/pytest-dev/pytest/issues/3974#issuecomment-499870914
2019-06-07 14:14:46 -03:00
Daniel Hahler
4f597f011d
Merge pull request #5419 from blueyed/remove-pypy3
...
ci: Travis: remove pypy3 job for now
2019-06-07 18:05:59 +02:00
Bruno Oliveira
9f5c356784
Remove ExceptionInfo.__str__, falling back to __repr__ ( #5413 )
...
Remove ExceptionInfo.__str__, falling back to __repr__
2019-06-07 08:48:03 -03:00
Daniel Hahler
47022b36cb
ci: Travis: remove pypy3 job for now
...
Ref: https://github.com/pytest-dev/pytest/issues/5317#issuecomment-499019928
2019-06-07 11:01:23 +02:00
Bruno Oliveira
042a10f2e2
Add `slow` marker in run/skip option example. ( #5416 )
...
Add `slow` marker in run/skip option example.
2019-06-06 15:00:04 -03:00
Anthony Sottile
0405697a78
Merge pull request #5415 from asottile/small_mypy_fixes
...
small mypy fixes
2019-06-06 10:47:58 -07:00
Ralph Giles
918268774b
Add `slow` marker in run/skip option example.
...
The example implementation of a `--runslow` option results in
a `PytestUnknownMarkWarning`. Include registering the custom
mark in the example, based on the documentation in markers.rst.
2019-06-06 10:15:43 -07:00
Anthony Sottile
ccd87f9e80
small mypy fixes
2019-06-06 09:13:02 -07:00
Bruno Oliveira
65c2a81924
Remove ExceptionInfo.__str__, falling back to __repr__
...
Fix #5412
2019-06-06 12:20:32 -03:00
Bruno Oliveira
450d264623
ci: move coverage reporting to shared script ( #5403 )
...
ci: move coverage reporting to shared script
2019-06-06 12:04:32 -03:00
Daniel Hahler
0fd1f3038c
ci: move coverage reporting to shared script
2019-06-06 16:31:39 +02:00
Bruno Oliveira
9f8b566ea9
Turn PytestDeprecationWarning into error ( #5410 )
...
Turn PytestDeprecationWarning into error
2019-06-05 22:20:14 -03:00
Bruno Oliveira
3656885d0d
Fix verbosity bug in --collect-only ( #5391 )
...
Fix verbosity bug in --collect-only
2019-06-05 20:47:59 -03:00
Thomas Hisch
577b0dffe7
Fix verbosity bug in --collect-only
2019-06-05 20:10:16 -03:00
Bruno Oliveira
8f5cb461a8
Turn PytestDeprecationWarning into error
...
Fix #5402
2019-06-05 19:02:52 -03:00
Daniel Hahler
be84ba8a33
Merge pull request #5396 from blueyed/travis-py37-nocov
...
Revert "Enable coverage for 'py37' environment"
2019-06-05 12:40:46 +02:00
Daniel Hahler
d9eafbdee3
Revert "Enable coverage for 'py37' environment"
...
This reverts commit 6d393c5dc8
.
It should not be necessary, because we have it via other jobs already.
2019-06-05 12:12:58 +02:00
Daniel Hahler
190456aeda
Merge pull request #5406 from blueyed/restore-tracing
...
tests: restore tracing function
2019-06-05 11:50:56 +02:00
Daniel Hahler
aab5687093
tests: restore tracing function
...
Without this, `testing/test_pdb.py` (already without pexpect) will cause
missing test coverage afterwards (for the same process).
2019-06-05 11:26:48 +02:00
Anthony Sottile
5fdc2d7744
Merge pull request #5400 from asottile/prefixes
...
Clean up u' prefixes and py2 bytes conversions
2019-06-04 19:03:12 -07:00
Anthony Sottile
25cef55e4a
Merge pull request #5398 from nicoddemus/kwargs-refactoring
...
Use keyword-only arguments in a few places
2019-06-04 18:21:44 -07:00
Anthony Sottile
be2be040f9
Clean up u' prefixes and py2 bytes conversions
2019-06-04 17:50:34 -07:00
Anthony Sottile
0f4992c223
Merge pull request #5393 from nicoddemus/unittest-self-5390
...
item.obj is again a bound method on TestCase function items
2019-06-04 17:48:48 -07:00