Skip to content

remove and ban py.io.BytesIO, py.process, py.path.local.sysfind#4661

Merged
asottile merged 1 commit into
pytest-dev:masterfrom
asottile:more_py
Jan 22, 2019
Merged

remove and ban py.io.BytesIO, py.process, py.path.local.sysfind#4661
asottile merged 1 commit into
pytest-dev:masterfrom
asottile:more_py

Conversation

@asottile

Copy link
Copy Markdown
Member

No description provided.

@codecov

codecov Bot commented Jan 22, 2019

Copy link
Copy Markdown

Codecov Report

Merging #4661 into master will increase coverage by 0.02%.
The diff coverage is 90.47%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #4661      +/-   ##
==========================================
+ Coverage   95.69%   95.71%   +0.02%     
==========================================
  Files         113      113              
  Lines       24885    24889       +4     
  Branches     2458     2458              
==========================================
+ Hits        23813    23822       +9     
+ Misses        756      754       -2     
+ Partials      316      313       -3
Flag Coverage Δ
#docs 29.56% <14.28%> (+0.07%) ⬆️
#doctesting 29.56% <14.28%> (+0.07%) ⬆️
#linting 29.56% <14.28%> (+0.07%) ⬆️
#linux 95.53% <80.95%> (+0.02%) ⬆️
#nobyte 92.32% <76.19%> (ø) ⬆️
#numpy 93.14% <71.42%> (+0.02%) ⬆️
#pexpect 42.07% <14.28%> (+0.02%) ⬆️
#py27 93.71% <90.47%> (+0.02%) ⬆️
#py34 91.82% <90.47%> (+0.06%) ⬆️
#py35 91.85% <90.47%> (+0.06%) ⬆️
#py36 91.87% <90.47%> (+0.06%) ⬆️
#py37 93.86% <90.47%> (+0.02%) ⬆️
#trial 93.14% <71.42%> (+0.02%) ⬆️
#windows 93.91% <80.95%> (ø) ⬆️
#xdist 93.75% <76.19%> (ø) ⬆️
Impacted Files Coverage Δ
testing/test_capture.py 99.24% <100%> (ø) ⬆️
src/_pytest/python.py 93% <100%> (ø) ⬆️
src/_pytest/fixtures.py 97.91% <100%> (ø) ⬆️
testing/test_parseopt.py 94.82% <50%> (+0.02%) ⬆️
src/_pytest/pytester.py 87.48% <80%> (+0.01%) ⬆️
src/_pytest/terminal.py 91.76% <0%> (+0.84%) ⬆️

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 f01f434...92a2c1a. Read the comment docs.

1 similar comment
@codecov

codecov Bot commented Jan 22, 2019

Copy link
Copy Markdown

Codecov Report

Merging #4661 into master will increase coverage by 0.02%.
The diff coverage is 90.47%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #4661      +/-   ##
==========================================
+ Coverage   95.69%   95.71%   +0.02%     
==========================================
  Files         113      113              
  Lines       24885    24889       +4     
  Branches     2458     2458              
==========================================
+ Hits        23813    23822       +9     
+ Misses        756      754       -2     
+ Partials      316      313       -3
Flag Coverage Δ
#docs 29.56% <14.28%> (+0.07%) ⬆️
#doctesting 29.56% <14.28%> (+0.07%) ⬆️
#linting 29.56% <14.28%> (+0.07%) ⬆️
#linux 95.53% <80.95%> (+0.02%) ⬆️
#nobyte 92.32% <76.19%> (ø) ⬆️
#numpy 93.14% <71.42%> (+0.02%) ⬆️
#pexpect 42.07% <14.28%> (+0.02%) ⬆️
#py27 93.71% <90.47%> (+0.02%) ⬆️
#py34 91.82% <90.47%> (+0.06%) ⬆️
#py35 91.85% <90.47%> (+0.06%) ⬆️
#py36 91.87% <90.47%> (+0.06%) ⬆️
#py37 93.86% <90.47%> (+0.02%) ⬆️
#trial 93.14% <71.42%> (+0.02%) ⬆️
#windows 93.91% <80.95%> (ø) ⬆️
#xdist 93.75% <76.19%> (ø) ⬆️
Impacted Files Coverage Δ
testing/test_capture.py 99.24% <100%> (ø) ⬆️
src/_pytest/python.py 93% <100%> (ø) ⬆️
src/_pytest/fixtures.py 97.91% <100%> (ø) ⬆️
testing/test_parseopt.py 94.82% <50%> (+0.02%) ⬆️
src/_pytest/pytester.py 87.48% <80%> (+0.01%) ⬆️
src/_pytest/terminal.py 91.76% <0%> (+0.84%) ⬆️

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 f01f434...92a2c1a. Read the comment docs.

@asottile asottile merged commit 1bcb2f9 into pytest-dev:master Jan 22, 2019
@asottile asottile deleted the more_py branch January 22, 2019 06:58
@nicoddemus

Copy link
Copy Markdown
Member

👍

Comment thread testing/test_capture.py

def test_bytes_io():
f = py.io.BytesIO()
f = io.BytesIO()

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This test only tests code from the stdlib and can be removed IMO.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

lol true, want to make a patch for it?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Sure. I'll create a PR

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.

4 participants