diff options
-rw-r--r-- | tests/test_coroutine.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/test_coroutine.py b/tests/test_coroutine.py index 8e50a35..2853980 100644 --- a/tests/test_coroutine.py +++ b/tests/test_coroutine.py @@ -68,8 +68,7 @@ class CoroutineTest(CoverageTest): import threading try: import Queue - except ImportError: - # Python 3 :) + except ImportError: # Python 3 :) import queue as Queue """ + COMMON @@ -89,9 +88,11 @@ class CoroutineTest(CoverageTest): def try_some_code(self, code, args): """Run some coroutine testing code and see that it was all covered.""" - raise SkipTest("Need to put this on a back burner for a while...") + self.make_file("try_it.py", code) + raise SkipTest("Need to put this on a back burner for a while...") + out = self.run_command("coverage run %s try_it.py" % args) expected_out = "%d\n" % (sum(range(1000))) self.assertEqual(out, expected_out) |