Bruno Oliveira
49defa2890
Merge pull request #4144 from nicoddemus/fix-flaky-durations-test
...
Fix flaky durations test
2018-10-14 18:40:14 -03:00
Bruno Oliveira
fe2dae4885
Merge pull request #4140 from blueyed/ci
...
Faster CI
2018-10-14 18:39:13 -03:00
Bruno Oliveira
6258248865
Merge pull request #4138 from blueyed/cov-pexpect
...
tox.ini: clean up changedir
2018-10-14 15:41:54 -03:00
Bruno Oliveira
4808145846
test_request_garbage is flaky when running with xdist
...
Example failure:
https://travis-ci.org/pytest-dev/pytest/jobs/441305926#L545
2018-10-14 15:17:08 -03:00
Bruno Oliveira
7e1fac5f91
Merge pull request #4139 from blueyed/passenv
...
tox.ini: passenv: COVERAGE_*
2018-10-14 12:24:28 -03:00
Bruno Oliveira
486ded3fca
Fix flaky durations test
...
Unfortunately due to fluctuations in runtime "test_something"
might still appear in the final message.
Example failure:
https://ci.appveyor.com/project/pytestbot/pytest/builds/19494829/job/8lx847u0c78m63wf
2018-10-14 12:22:56 -03:00
Daniel Hahler
3bd9f981a2
tox.ini: clean up changedir
2018-10-14 14:33:28 +02:00
Daniel Hahler
7ded937e19
AppVeyor: use fast_finish
...
This runs py27, py37 and linting first - simulating the baseline stage
used on Travis.
2018-10-14 14:27:34 +02:00
Daniel Hahler
6d0667f1db
CI: run specialized factors in a single job
...
Given the setup time for jobs, it makes sense to run
*-pexpect,*-trial,*-numpy in a single build job.
2018-10-14 14:27:34 +02:00
Daniel Hahler
7c380b19f3
tox.ini: passenv: COVERAGE_*
...
This is required to pass through COVERAGE_PROCESS_START etc.
2018-10-14 12:34:17 +02:00
Daniel Hahler
c6c326f076
Merge pull request #4137 from blueyed/toxini
...
tox.ini: pexpect: use posargs; cleanup posargs
2018-10-14 11:29:34 +02:00
Daniel Hahler
d6832a8b56
Merge pull request #4133 from blueyed/pdb-quit
...
pdb: handle quitting in post_mortem
2018-10-14 11:29:09 +02:00
Daniel Hahler
3bfaa8ab84
Merge pull request #4132 from blueyed/pdb-internal-dupe
...
Do not print (duplicate) INTERNALERROR with --pdb.
2018-10-14 11:25:35 +02:00
Bruno Oliveira
9fb305b17b
Merge pull request #4086 from jeffreyrack/4063-exclude-0-durations
...
Exclude durations that are 0.00 seconds long.
2018-10-13 22:16:04 -03:00
Bruno Oliveira
e3bf9cede4
Fix linting
2018-10-13 22:13:25 -03:00
Daniel Hahler
4a49715614
tox.ini: pexpect: use posargs; cleanup posargs
...
- no need for {posargs:testing} really
- remove `-ra`, used with addopts already
2018-10-14 00:08:46 +02:00
Daniel Hahler
86c7dcff68
pdb: handle quitting in post_mortem
...
`help quit` in pdb says:
> Quit from the debugger. The program being executed is aborted.
But pytest would continue with the next tests, often making it necessary
to kill the pytest process when using `--pdb` and trying to cancel the
tests using `KeyboardInterrupt` / `Ctrl-C`.
2018-10-14 00:05:45 +02:00
Daniel Hahler
448830e656
Do not print INTERNALERROR with --pdb
...
This gets printed by the terminal reporter already, and currently
results in the same error being displayed twice, e.g. when raising an
`Exception` manually from `pytest.debugging.pytest_exception_interact`.
2018-10-13 23:56:34 +02:00
Bruno Oliveira
3683d92c53
Adjust the 'durations hidden' message
2018-10-13 18:40:32 -03:00
Daniel Hahler
d3d8d53e41
tests: test_pdb: fix print statements
2018-10-13 23:33:52 +02:00
Jeffrey Rackauckas
7a271a91b0
Fix rounding error when displaying durations in non-verbose mode.
2018-10-13 12:55:17 -07:00
Jeffrey Rackauckas
47f5c29002
Update messaging for --durations when not in verbose mode.
2018-10-13 12:51:04 -07:00
Bruno Oliveira
27d2683a02
Merge pull request #4134 from blueyed/minor
...
Minor: code style / constant
2018-10-13 16:13:02 -03:00
Bruno Oliveira
792f365c14
Merge pull request #4136 from luziferius/patch-1
...
docs: deprecation.rst: Add missing arguments to example code
2018-10-13 16:12:49 -03:00
Thomas Hess
91b2797498
docs: deprecation.rst: Add missing arguments to code example
...
In the proposed new style using `@pytest.mark.parametrize`,
the example function signature missed the actual arguments.
Add the missing arguments
2018-10-13 20:33:31 +02:00
Daniel Hahler
c27c8f41a8
Merge pull request #4123 from blueyed/clarify
...
tests: clarify/document/harden acceptance tests
2018-10-13 18:26:10 +02:00
Daniel Hahler
ee54fb9a6b
pytester: use EXIT_INTERRUPTED
2018-10-13 17:06:40 +02:00
Daniel Hahler
10ddc466bf
minor: typo and code style
2018-10-13 17:06:40 +02:00
Daniel Hahler
6bf4692c7d
acceptance_test: clarify/document/fix tests
...
Ref: e2e6e31711 (r30863971)
2018-10-13 14:41:17 +02:00
Daniel Hahler
81426c3d19
tests: harden test_cmdline_python_package_symlink
2018-10-13 14:41:12 +02:00
Bruno Oliveira
eabf15b626
Merge pull request #4125 from nicoddemus/docs-baseline
...
Run docs, doctesting and linting in the same job to save some CI time
2018-10-12 21:01:59 -03:00
Bruno Oliveira
2dc619cbf4
Run docs, doctesting and linting in the same environment to save some CI time
2018-10-12 13:35:27 -03:00
Ankit Goel
d46b6b2bc3
Merge pull request #4121 from labcodes/3713
...
Update usefixtures documentation
2018-10-12 19:08:40 +05:30
Jose Carlos Menezes
dbaa9464ba
Update usefixtures documentation
...
Clarifying that it can't be used with fixture functions
2018-10-12 09:45:49 -03:00
Bruno Oliveira
0f5263cdc3
Merge pull request #4109 from njonesu/master
...
Fix multiple string literals on a line #4093
2018-10-11 15:50:08 -03:00
Bruno Oliveira
e20987ce82
Merge pull request #4110 from blueyed/pdb
...
tests: fixes for pdbpp
2018-10-11 08:43:24 -03:00
Bruno Oliveira
c9a85b0e78
Fix linting
2018-10-10 19:54:39 -03:00
Daniel Hahler
be511c1a05
tests: add missing expect before sendeof for pdbpp
...
With pdb++ this additional `expect` is required, otherwise `sendeof()`
will block forever.
2018-10-10 20:50:49 +02:00
Daniel Hahler
f36f9d2698
tests: fix/clarify expect for Pdb
...
`expect()` expects an regular expression, so "Pdb" is equivalent to
"(Pdb)".
But instead of escaping the parenthesis this patch removes them, to
allow for matching "(Pdb++)", too.
2018-10-10 20:50:49 +02:00
Niklas JQ
d1322570dd
Fix issue 4093
2018-10-10 19:45:07 +02:00
Niklas JQ
c14a23d4e4
Fix #4093 : multiple string literals on a line
2018-10-10 19:28:31 +02:00
Anthony Sottile
4b164d947d
Merge pull request #4099 from asottile/re-enable_linting_windows
...
re-enable linting tox env on windows
2018-10-09 15:16:08 -07:00
Anthony Sottile
11a07211b6
re-enable linting tox env on windows
2018-10-09 13:01:51 -07:00
Anthony Sottile
28a3f0fcb9
Revert "Merge pull request #4094 from pytest-dev/asottile/asottile-patch-1"
...
This reverts commit c55d641963
, reversing
changes made to 8393fdd51d
.
2018-10-09 12:50:03 -07:00
Anthony Sottile
b8c30aab2b
Merge pull request #4097 from asottile/improve_doc_plugin_load
...
Fix formatting for plugin loading in conftest
2018-10-09 10:23:04 -07:00
Anthony Sottile
aaaae0b232
Fix formatting for plugin loading in conftest
2018-10-09 09:30:56 -07:00
Anthony Sottile
c55d641963
Merge pull request #4094 from pytest-dev/asottile/asottile-patch-1
...
Temporarily disable `linting` env in appveyor
2018-10-08 22:55:34 -07:00
Anthony Sottile
4ec85f934c
Temporarily disable `linting` env in appveyor
2018-10-08 22:54:32 -07:00
Ronny Pfannschmidt
8393fdd51d
Merge pull request #4089 from asottile/upgrade_hooks
...
Upgrade pre-commit hooks
2018-10-09 07:43:28 +02:00
Anthony Sottile
e8c10d4a98
Merge pull request #4090 from asottile/faster_tests
...
Improve performance of ~3 of the slowest tests
2018-10-08 17:07:10 -07:00