diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2014-07-31 06:40:06 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2014-07-31 06:40:06 -0400 |
commit | b4c78975cbc67d14bcd9cba5bff2abaa3850b1c9 (patch) | |
tree | 7da2529f3d25ea0dd8ab94d30991df19d4a6585f | |
parent | d802adad2dd55ea2d34515de800e81cce13adff2 (diff) | |
download | python-coveragepy-git-b4c78975cbc67d14bcd9cba5bff2abaa3850b1c9.tar.gz |
Temporary debugging tweaks to tests
--HG--
branch : c-coroutine
-rw-r--r-- | tests/test_coroutine.py | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/tests/test_coroutine.py b/tests/test_coroutine.py index b204827e..38de7a3d 100644 --- a/tests/test_coroutine.py +++ b/tests/test_coroutine.py @@ -32,7 +32,7 @@ def line_count(s): class CoroutineTest(CoverageTest): """Tests of the coroutine support in coverage.py.""" - LIMIT = 1000 + LIMIT = 3 # Should be 1000, but this gives me a reasonable amount of output. # The code common to all the concurrency models. COMMON = """ @@ -136,6 +136,19 @@ class CoroutineTest(CoverageTest): self.try_some_code(self.GEVENT, "--coroutine=gevent") + def test_gevent_badly(self): + # This test shouldn't pass. It should fail because we are running + # gevent code without the --coroutine=gevent flag. It's here so I can + # see how gevent code looks when it isn't measured properly. The C + # extension implementation of coroutining is currently acting precisely + # as if no coroutine support is available (demonstrated by this test), + # and I don't know why. This test is part of me debugging that + # problem. + if gevent is None: + raise SkipTest("No gevent available") + + self.try_some_code(self.GEVENT, "") + def print_simple_annotation(code, linenos): """Print the lines in `code` with X for each line number in `linenos`.""" |