summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2014-03-01 06:47:21 -0500
committerNed Batchelder <ned@nedbatchelder.com>2014-03-01 06:47:21 -0500
commit7f0741b9997d96567abc32fe306805db610d959d (patch)
tree7ab34a4b1f4102f2f19a98f60253586ef33b74d3
parentdfbe22c7d66a6e20f07755f17bf0834fa38b3b16 (diff)
downloadpython-coveragepy-git-7f0741b9997d96567abc32fe306805db610d959d.tar.gz
Let the coroutine tests make a file, so the temp-file police don't complain.
-rw-r--r--tests/test_coroutine.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/test_coroutine.py b/tests/test_coroutine.py
index 8e50a358..28539801 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)