diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2017-03-30 06:51:27 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2017-03-30 06:51:27 -0400 |
commit | 4439ad0f438bd049b46c62427375e37a67f2b502 (patch) | |
tree | 1e0cd6d7037e0d74c1291b2de77b416a03e8e3ac | |
parent | ba61e502586e4693d9c626d77389f55163e29de2 (diff) | |
download | python-coveragepy-git-4439ad0f438bd049b46c62427375e37a67f2b502.tar.gz |
Use new show_stderr flag so we can see errors printed to stderr during failing tests.
-rw-r--r-- | tests/coveragetest.py | 3 | ||||
-rw-r--r-- | tests/test_plugins.py | 1 | ||||
-rw-r--r-- | tox.ini | 4 |
3 files changed, 5 insertions, 3 deletions
diff --git a/tests/coveragetest.py b/tests/coveragetest.py index 37e09376..28ee92e7 100644 --- a/tests/coveragetest.py +++ b/tests/coveragetest.py @@ -72,6 +72,9 @@ class CoverageTest( # Tell newer unittest implementations to print long helpful messages. longMessage = True + # Let stderr go to stderr, pytest will capture it for us. + show_stderr = True + def setUp(self): super(CoverageTest, self).setUp() diff --git a/tests/test_plugins.py b/tests/test_plugins.py index 0edfebe8..cb81229a 100644 --- a/tests/test_plugins.py +++ b/tests/test_plugins.py @@ -558,7 +558,6 @@ class BadPluginTest(FileTracerTest): self.run_plugin(module_name) stderr = self.stderr() - print(stderr) # for diagnosing test failures. if our_error: errors = stderr.count("# Oh noes!") @@ -14,8 +14,8 @@ deps = pip==9.0.1 mock==2.0.0 PyContracts==1.7.15 - unittest-mixins==1.2.1 - #-egit+/Users/ned/unittest_mixins#egg=unittest-mixins==0.0 + unittest-mixins==1.3 + #-e/Users/ned/unittest_mixins py26: unittest2==1.1.0 py{27,33,34,35,36}: gevent==1.2.1 py{26,27,33,34,35,36}: eventlet==0.20.1 |