aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/tests/environment.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2013-12-15 11:18:00 -0500
committerJason R. Coombs <jaraco@jaraco.com>2013-12-15 11:18:00 -0500
commitda064e604ed17f920c56813f056f2015c72e4f07 (patch)
tree1f74ad1d6ac9b38e5a079955f85f03946e111409 /setuptools/tests/environment.py
parent02a2d475691af0932df4306b24d101b2880f2e79 (diff)
parent8bbdac7d065e408f3f320e4523274e10e1c469fc (diff)
downloadexternal_python_setuptools-da064e604ed17f920c56813f056f2015c72e4f07.tar.gz
external_python_setuptools-da064e604ed17f920c56813f056f2015c72e4f07.tar.bz2
external_python_setuptools-da064e604ed17f920c56813f056f2015c72e4f07.zip
Merged in philip_thiem/setuptools (pull request #27)
Fixed tests for skipping when svn not present.
Diffstat (limited to 'setuptools/tests/environment.py')
-rw-r--r--setuptools/tests/environment.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/setuptools/tests/environment.py b/setuptools/tests/environment.py
index bd2c53d2..476d280a 100644
--- a/setuptools/tests/environment.py
+++ b/setuptools/tests/environment.py
@@ -78,6 +78,9 @@ class ZippedEnvironment(unittest.TestCase):
old_cwd = None
def setUp(self):
+ if self.datafile is None or self.dataname is None:
+ return
+
if not os.path.isfile(self.datafile):
self.old_cwd = None
return
@@ -98,6 +101,10 @@ class ZippedEnvironment(unittest.TestCase):
os.chdir(os.path.join(self.temp_dir, self.dataname))
def tearDown(self):
+ #Assume setUp was never completed
+ if self.dataname is None or self.datafile is None:
+ return
+
try:
if self.old_cwd:
os.chdir(self.old_cwd)