diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2009-11-18 07:12:55 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2009-11-18 07:12:55 -0500 |
commit | d449757838d272f6cbf23e07fddf18b5824adb26 (patch) | |
tree | cc96be9e74b27dfe0673fcb9c61198cdcb118c1a | |
parent | e6f7c758510279978aad030e0369f34cf666ee3a (diff) | |
download | python-coveragepy-d449757838d272f6cbf23e07fddf18b5824adb26.tar.gz |
Trim line lengths
-rw-r--r-- | test/coveragetest.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/coveragetest.py b/test/coveragetest.py index 0fe9806..d1631a3 100644 --- a/test/coveragetest.py +++ b/test/coveragetest.py @@ -29,7 +29,7 @@ class CoverageTest(unittest.TestCase): if self.run_in_temp_dir: # Create a temporary directory. self.noise = str(random.random())[2:] - self.temp_root = os.path.join(tempfile.gettempdir(), 'test_coverage') + self.temp_root = os.path.join(tempfile.gettempdir(), 'test_cover') self.temp_dir = os.path.join(self.temp_root, self.noise) os.makedirs(self.temp_dir) self.old_dir = os.getcwd() @@ -55,7 +55,7 @@ class CoverageTest(unittest.TestCase): # Restore the original sys.path and PYTHONPATH sys.path = self.old_syspath os.environ['PYTHONPATH'] = self.old_pypath - + # Get rid of the temporary directory. os.chdir(self.old_dir) shutil.rmtree(self.temp_root) @@ -73,6 +73,7 @@ class CoverageTest(unittest.TestCase): `filename` is the file name, and `text` is the content. """ + # Tests that call `make_file` should be run in a temp environment. assert self.run_in_temp_dir text = textwrap.dedent(text) |