Skip to content

Conversation

@nicoddemus
Copy link
Member

Fix #5578

Copy link
Member

@asottile asottile left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@asottile
Copy link
Member

asottile commented Jul 9, 2019

hmmmm though test_module_level_skip_error (the failing test) seems to maybe already provide this functionality -- just it's not applied to all places (?)

@nicoddemus
Copy link
Member Author

hmmmm though test_module_level_skip_error (the failing test) seems to maybe already provide this functionality -- just it's not applied to all places (?)

Yeah changed the test slightly:

import pytest
pytest.skip(reason='some reason')

Will show the original message.

Any use of pytest.skip, pytest.xfail, etc, will now show the new message about expecting a string and suggesting a mark.

@nicoddemus nicoddemus force-pushed the outcome-type-error-5578 branch from 4f06e2d to 9db1823 Compare July 9, 2019 21:28
@codecov
Copy link

codecov bot commented Jul 9, 2019

Codecov Report

Merging #5580 into master will increase coverage by 1.17%.
The diff coverage is 91.66%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #5580      +/-   ##
==========================================
+ Coverage   94.73%   95.91%   +1.17%     
==========================================
  Files         117      117              
  Lines       25713    25721       +8     
  Branches     2493     2493              
==========================================
+ Hits        24359    24670     +311     
+ Misses       1036      744     -292     
+ Partials      318      307      -11
Impacted Files Coverage Δ
testing/test_skipping.py 97.98% <ø> (ø) ⬆️
src/_pytest/outcomes.py 98.46% <100%> (+3.07%) ⬆️
testing/test_runner.py 96.12% <87.5%> (-0.16%) ⬇️
src/_pytest/pytester.py 85.03% <0%> (-4.89%) ⬇️
testing/test_assertrewrite.py 83.26% <0%> (-1.42%) ⬇️
testing/test_pytester.py 89.27% <0%> (+0.57%) ⬆️
src/_pytest/capture.py 94.73% <0%> (+1.31%) ⬆️
testing/test_terminal.py 99.84% <0%> (+1.4%) ⬆️
src/_pytest/terminal.py 92.6% <0%> (+1.84%) ⬆️
src/_pytest/doctest.py 96.62% <0%> (+2.24%) ⬆️
... and 3 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 628ff4d...9db1823. Read the comment docs.

Copy link
Member

@asottile asottile left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nicoddemus nicoddemus merged commit 57e5bd0 into pytest-dev:master Jul 9, 2019
@nicoddemus nicoddemus deleted the outcome-type-error-5578 branch July 9, 2019 22:12
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.

pytest raises TypeError on parsing a specific test case

2 participants