From 7f0741b9997d96567abc32fe306805db610d959d Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Sat, 1 Mar 2014 06:47:21 -0500 Subject: Let the coroutine tests make a file, so the temp-file police don't complain. --- tests/test_coroutine.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'tests/test_coroutine.py') 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) -- cgit v1.2.1