diff options
| author | Ned Batchelder <ned@nedbatchelder.com> | 2015-02-14 09:27:27 -0500 | 
|---|---|---|
| committer | Ned Batchelder <ned@nedbatchelder.com> | 2015-02-14 09:27:27 -0500 | 
| commit | e25a505dfece0b60c22ea871796d7159a300d771 (patch) | |
| tree | 71cdfdfbe6f1a417bb883aa42c55d400cdd59fad /tests/test_farm.py | |
| parent | 2ddec8a0a5b816470f6a6982468d521d4da2d322 (diff) | |
| download | python-coveragepy-git-e25a505dfece0b60c22ea871796d7159a300d771.tar.gz | |
Move some code to where it belongs
Diffstat (limited to 'tests/test_farm.py')
| -rw-r--r-- | tests/test_farm.py | 19 | 
1 files changed, 14 insertions, 5 deletions
diff --git a/tests/test_farm.py b/tests/test_farm.py index 31bd4c65..92bd968a 100644 --- a/tests/test_farm.py +++ b/tests/test_farm.py @@ -1,9 +1,17 @@  """Run tests in the farm sub-directory.  Designed for nose.""" -import difflib, filecmp, fnmatch, glob, os, re, shutil, sys +import difflib +import filecmp +import fnmatch +import glob +import os +import re +import shutil +import sys +  from nose.plugins.skip import SkipTest -from tests.backtest import run_command +from tests.helpers import run_command  from tests.backtest import execfile         # pylint: disable=redefined-builtin  from coverage.control import _TEST_NAME_FILE @@ -199,9 +207,10 @@ class FarmTestCase(object):              self.cd(cwd)              self.restorepath(oldpath) -    def compare(self, dir1, dir2, file_pattern=None, size_within=0, -            left_extra=False, right_extra=False, scrubs=None -            ): +    def compare( +        self, dir1, dir2, file_pattern=None, size_within=0, +        left_extra=False, right_extra=False, scrubs=None +    ):          """Compare files matching `file_pattern` in `dir1` and `dir2`.          `dir2` is interpreted as a prefix, with Python version numbers appended  | 
