Skip to content

--lsof: suppress stderr#4763

Merged
nicoddemus merged 1 commit into
pytest-dev:masterfrom
blueyed:lsof
Feb 11, 2019
Merged

--lsof: suppress stderr#4763
nicoddemus merged 1 commit into
pytest-dev:masterfrom
blueyed:lsof

Conversation

@blueyed

@blueyed blueyed commented Feb 10, 2019

Copy link
Copy Markdown
Contributor

This can spam a lot of warnings (per invocation), e.g.:

lsof: WARNING: can't stat() nsfs file system /run/docker/netns/default
Output information may be incomplete.

Or from Travis/MacOS:

lsof: WARNING: can't stat() vmhgfs file system /Volumes/VMware Shared Folders
Output information may be incomplete.
assuming "dev=31000003" from mount table

@blueyed blueyed force-pushed the lsof branch 2 times, most recently from e8eafe6 to f9e1839 Compare February 10, 2019 18:29
@codecov

codecov Bot commented Feb 10, 2019

Copy link
Copy Markdown

Codecov Report

Merging #4763 into master will decrease coverage by 0.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #4763      +/-   ##
==========================================
- Coverage   95.68%   95.67%   -0.02%     
==========================================
  Files         113      113              
  Lines       25001    25001              
  Branches     2484     2484              
==========================================
- Hits        23923    23920       -3     
  Misses        762      762              
- Partials      316      319       +3
Flag Coverage Δ
#docs 29.68% <0%> (+0.1%) ⬆️
#doctesting 29.68% <0%> (+0.1%) ⬆️
#linting 29.68% <0%> (+0.1%) ⬆️
#linux 95.5% <100%> (ø) ⬆️
#nobyte 92.3% <0%> (-0.02%) ⬇️
#numpy 93.06% <0%> (-0.02%) ⬇️
#pexpect 42.05% <0%> (ø) ⬆️
#py27 93.53% <0%> (-0.16%) ⬇️
#py34 91.77% <100%> (+0.06%) ⬆️
#py35 91.77% <100%> (+0.06%) ⬆️
#py36 91.79% <100%> (+0.06%) ⬆️
#py37 93.81% <100%> (ø) ⬆️
#trial 93.06% <0%> (-0.02%) ⬇️
#windows 93.83% <0%> (-0.02%) ⬇️
#xdist 93.72% <0%> (ø) ⬆️
Impacted Files Coverage Δ
src/_pytest/pytester.py 87.42% <100%> (ø) ⬆️
src/_pytest/cacheprovider.py 95.75% <0%> (-1.42%) ⬇️

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 1950102...e8eafe6. Read the comment docs.

@codecov

codecov Bot commented Feb 10, 2019

Copy link
Copy Markdown

Codecov Report

Merging #4763 into master will decrease coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #4763      +/-   ##
==========================================
- Coverage   95.68%   95.68%   -0.01%     
==========================================
  Files         113      113              
  Lines       25001    25012      +11     
  Branches     2484     2484              
==========================================
+ Hits        23923    23932       +9     
  Misses        762      762              
- Partials      316      318       +2
Flag Coverage Δ
#docs 29.67% <0%> (+0.1%) ⬆️
#doctesting 29.67% <0%> (+0.1%) ⬆️
#linting 29.67% <0%> (+0.1%) ⬆️
#linux 95.5% <100%> (-0.02%) ⬇️
#nobyte 92.3% <0%> (-0.01%) ⬇️
#numpy 93.07% <0%> (ø) ⬆️
#pexpect 42.05% <0%> (-0.01%) ⬇️
#pluggymaster 93.81% <100%> (+0.07%) ⬆️
#py27 93.7% <100%> (-0.01%) ⬇️
#py34 91.77% <100%> (+0.06%) ⬆️
#py35 91.77% <100%> (+0.06%) ⬆️
#py36 91.79% <100%> (+0.06%) ⬆️
#py37 93.81% <100%> (+0.02%) ⬆️
#trial 93.07% <0%> (ø) ⬆️
#windows 93.83% <0%> (ø) ⬆️
#xdist 93.71% <0%> (-0.01%) ⬇️
Impacted Files Coverage Δ
src/_pytest/pytester.py 87.44% <100%> (+0.01%) ⬆️
src/_pytest/cacheprovider.py 95.75% <0%> (-1.42%) ⬇️
testing/test_collection.py 99.8% <0%> (ø) ⬆️
src/_pytest/python.py 92.79% <0%> (+0.12%) ⬆️

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 386e801...237f690. Read the comment docs.

Comment thread src/_pytest/pytester.py Outdated
This can spam a lot of warnings (per invocation), e.g.:

> lsof: WARNING: can't stat() nsfs file system /run/docker/netns/default
        Output information may be incomplete.

Or from Travis/MacOS:

> lsof: WARNING: can't stat() vmhgfs file system /Volumes/VMware Shared Folders
>       Output information may be incomplete.
>       assuming "dev=31000003" from mount table

@asottile asottile left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@nicoddemus

Copy link
Copy Markdown
Member

@asottile OK that pic is just disturbing! 🤣

@asottile

Copy link
Copy Markdown
Member

@asottile OK that pic is just disturbing!

Heh yeah cat person in box is one of the weirder ones. RNG is fun

@nicoddemus nicoddemus merged commit 67dd10d into pytest-dev:master Feb 11, 2019
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