Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge master into features (prepare for 3.9, pt2) #4158

Merged
merged 41 commits into from Oct 15, 2018

Conversation

nicoddemus
Copy link
Member

Thanks for submitting a PR, your contribution is really appreciated!

Here's a quick checklist that should be present in PRs (you can delete this text from the final description, this is
just a guideline):

  • Create a new changelog file in the changelog folder, with a name like <ISSUE NUMBER>.<TYPE>.rst. See changelog/README.rst for details.
  • Target the master branch for bug fixes, documentation updates and trivial changes.
  • Target the features branch for new features and removals/deprecations.
  • Include documentation when adding new features.
  • Include new tests or update existing tests when applicable.

Unless your change is trivial or a small documentation fix (e.g., a typo or reword of a small section) please:

  • Add yourself to AUTHORS in alphabetical order;

jeffreyrack and others added 30 commits October 7, 2018 19:19
tests: clarify/document/harden acceptance tests
In the proposed new style using `@pytest.mark.parametrize`,
the example function signature missed the actual arguments.
Add the missing arguments
docs: deprecation.rst: Add missing arguments to example code
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`.
`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`.
- no need for {posargs:testing} really
- remove `-ra`, used with addopts already
…rations

Exclude durations that are 0.00 seconds long.
Do not print (duplicate) INTERNALERROR with --pdb.
pdb: handle quitting in post_mortem
tox.ini: pexpect: use posargs; cleanup posargs
This is required to pass through COVERAGE_PROCESS_START etc.
Given the setup time for jobs, it makes sense to run
*-pexpect,*-trial,*-numpy in a single build job.
This runs py27, py37 and linting first - simulating the baseline stage
used on Travis.
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
nicoddemus and others added 11 commits October 14, 2018 18:40
```console
$ cd t && rm -rf __pycache__ && pytest t.py -q -c /dev/null; cd ..
.                                                                        [100%]
=============================== warnings summary ===============================
<unknown>:2: DeprecationWarning: invalid escape sequence \.

-- Docs: https://docs.pytest.org/en/latest/warnings.html
1 passed, 1 warnings in 0.01 seconds

```

```console
$ cd t && rm -rf __pycache__ && pytest t.py -q -c /dev/null; cd ..
.                                                                        [100%]
=============================== warnings summary ===============================
/tmp/pytest/t/t.py:2: DeprecationWarning: invalid escape sequence \.
  '\.wat'

-- Docs: https://docs.pytest.org/en/latest/warnings.html
1 passed, 1 warnings in 0.01 seconds
```
…e_on_how_to_use_pytester_to_the_CONTRIBUTING_guide_4151

Add testdir examples to CONTRIBUTING guide
Display the filename when encountering `SyntaxWarning`.
Use full link to changelog's README in PR template
@codecov
Copy link

codecov bot commented Oct 15, 2018

Codecov Report

Merging #4158 into features will increase coverage by 1.34%.
The diff coverage is 90.38%.

Impacted file tree graph

@@             Coverage Diff              @@
##           features    #4158      +/-   ##
============================================
+ Coverage     94.45%   95.79%   +1.34%     
============================================
  Files           109      109              
  Lines         24193    24208      +15     
  Branches       2384     2387       +3     
============================================
+ Hits          22852    23191     +339     
+ Misses         1023      721     -302     
+ Partials        318      296      -22
Flag Coverage Δ
#docs 28.46% <12.76%> (?)
#doctesting 28.46% <12.76%> (?)
#linting 28.46% <12.76%> (?)
#linux 95.59% <90.38%> (+1.29%) ⬆️
#nobyte 91.86% <76.92%> (+91.86%) ⬆️
#numpy 92.89% <80.76%> (+64.77%) ⬆️
#pexpect 41.29% <31.91%> (+41.29%) ⬆️
#py27 93.93% <90.38%> (+1.33%) ⬆️
#py34 92.26% <76.92%> (+0.23%) ⬆️
#py35 92.28% <76.92%> (+0.23%) ⬆️
#py36 93.94% <90.38%> (+1.33%) ⬆️
#py37 92.31% <76.92%> (+0.06%) ⬆️
#trial 92.89% <80.76%> (+61.67%) ⬆️
#windows 94.03% <82.69%> (+0.24%) ⬆️
#xdist 93.76% <76.92%> (+74.87%) ⬆️
Impacted Files Coverage Δ
src/_pytest/assertion/rewrite.py 95.68% <100%> (+0.33%) ⬆️
testing/python/fixture.py 99.23% <100%> (ø) ⬆️
src/_pytest/pytester.py 87.3% <100%> (+0.86%) ⬆️
src/_pytest/runner.py 96.83% <100%> (+0.06%) ⬆️
src/_pytest/main.py 96.22% <100%> (ø) ⬆️
src/_pytest/fixtures.py 97.3% <100%> (ø) ⬆️
src/_pytest/debugging.py 94.57% <60%> (+27.13%) ⬆️
testing/test_pdb.py 94.91% <85.71%> (+42.21%) ⬆️
testing/acceptance_test.py 98.26% <91.66%> (+0.43%) ⬆️
... and 15 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 58b6e86...9646a1c. Read the comment docs.

@nicoddemus nicoddemus merged commit e4e4fd1 into pytest-dev:features Oct 15, 2018
@nicoddemus nicoddemus deleted the merge-master-into-features branch October 15, 2018 20:12
@coveralls
Copy link

coveralls commented Oct 16, 2018

Coverage Status

Coverage increased (+0.2%) to 93.98% when pulling 9646a1c on nicoddemus:merge-master-into-features into 58b6e86 on pytest-dev:features.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

8 participants