summaryrefslogtreecommitdiff
path: root/tests
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
commitc8864c2360af80bcc1a0b9fb36c0405eb0c402d2 (patch)
treefa59d68500efcd88196ee48f25a606a31cf11022 /tests
parenta8bcc29640138e4a2808b5836c66cc1f6e7e1b8e (diff)
downloadpython-coveragepy-c8864c2360af80bcc1a0b9fb36c0405eb0c402d2.tar.gz
Let the coroutine tests make a file, so the temp-file police don't complain.
Diffstat (limited to 'tests')
-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 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)