diff options
| author | Ned Batchelder <ned@nedbatchelder.com> | 2014-03-01 06:47:21 -0500 |
|---|---|---|
| committer | Ned Batchelder <ned@nedbatchelder.com> | 2014-03-01 06:47:21 -0500 |
| commit | c8864c2360af80bcc1a0b9fb36c0405eb0c402d2 (patch) | |
| tree | fa59d68500efcd88196ee48f25a606a31cf11022 | |
| parent | a8bcc29640138e4a2808b5836c66cc1f6e7e1b8e (diff) | |
| download | python-coveragepy-c8864c2360af80bcc1a0b9fb36c0405eb0c402d2.tar.gz | |
Let the coroutine tests make a file, so the temp-file police don't complain.
| -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) |
