diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2017-01-19 06:30:04 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2017-01-19 06:30:04 -0500 |
commit | ee0526d8cee7413b857b7260ed1921a530196aa7 (patch) | |
tree | 3201d76852fb048e7a1cf8bb9c4d3aef4e98ebdd /tests/test_farm.py | |
parent | adb5c8f6247d688ae001801dc300bb0ff8076648 (diff) | |
download | python-coveragepy-git-ee0526d8cee7413b857b7260ed1921a530196aa7.tar.gz |
More-precise no-coverage pragmas
Diffstat (limited to 'tests/test_farm.py')
-rw-r--r-- | tests/test_farm.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test_farm.py b/tests/test_farm.py index 4a80be47..8e497363 100644 --- a/tests/test_farm.py +++ b/tests/test_farm.py @@ -119,7 +119,7 @@ class FarmTestCase(ModuleAwareMixin, SysPathAwareMixin, unittest.TestCase): glo['clean'] = clean else: glo = dict((fn, globals()[fn]) for fn in fns) - if self.dont_clean: # pragma: not covered + if self.dont_clean: # pragma: debugging glo['clean'] = noop with change_dir(self.dir): @@ -328,7 +328,7 @@ def clean(cleandir): if os.path.exists(cleandir): try: shutil.rmtree(cleandir) - except OSError: # pragma: not covered + except OSError: # pragma: cant happen if tries == 1: raise else: @@ -369,7 +369,7 @@ def scrub(strdata, scrubs): return strdata -def main(): # pragma: not covered +def main(): # pragma: debugging """Command-line access to farm tests. Commands: @@ -400,5 +400,5 @@ def main(): # pragma: not covered print(main.__doc__) # So that we can run just one farm run.py at a time. -if __name__ == '__main__': # pragma: not covered +if __name__ == '__main__': # pragma: debugging main() |