bskinn / stdio-mgr

Context manager for mocking/wrapping stdin/stdout/stderr
MIT License
14 stars 4 forks source link

Pytest opts #79

Closed jayvdb closed 5 years ago

bskinn commented 5 years ago

Can't make -p no:warnings global.

codecov-io commented 5 years ago

Codecov Report

Merging #79 into master will not change coverage. The diff coverage is n/a.

Impacted file tree graph

@@          Coverage Diff          @@
##           master    #79   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files           3      3           
  Lines         101    101           
=====================================
  Hits          101    101

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 ec9f50f...59e74d4. Read the comment docs.

bskinn commented 5 years ago

Fully approve the README doctest hack though.

Agree those timeouts are probably a good idea. What's the difference between the two timeout values?

jayvdb commented 5 years ago

timeout is pytest-timeout , and the other is a core part of pytest

bskinn commented 5 years ago

And, yeah, it doesn't seem to be possible to override the global -p no:warnings in the config file with a supposedly-overriding -p warnings elsewhere, I tried that.

I suppose maybe I should've posted a bug report for it when I found it? I figured it was some inevitable behavior of the pytest plugin system.

jayvdb commented 5 years ago

I think this way is working. Alternatively, rm tox.ini also works.

bskinn commented 5 years ago

Alternatively, rm tox.ini also works.

Just burn it all down!

We do still have to pass -W error::Warning, though, right? (Even after rm tox.ini)