aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2015-01-01 17:14:41 -0500
committerJason R. Coombs <jaraco@jaraco.com>2015-01-01 17:14:41 -0500
commitae7007467caf6d29936c0e7ff9f9d92f610aeb98 (patch)
treee774867145a7751949f5fbf41b49babce6bce6a2
parent32f39a11f9196984c50b2193ca40c2472040ed96 (diff)
downloadexternal_python_setuptools-ae7007467caf6d29936c0e7ff9f9d92f610aeb98.tar.gz
external_python_setuptools-ae7007467caf6d29936c0e7ff9f9d92f610aeb98.tar.bz2
external_python_setuptools-ae7007467caf6d29936c0e7ff9f9d92f610aeb98.zip
Python 2.6 is required
-rw-r--r--setuptools/tests/test_bdist_egg.py19
1 files changed, 8 insertions, 11 deletions
diff --git a/setuptools/tests/test_bdist_egg.py b/setuptools/tests/test_bdist_egg.py
index 519f27c9..1b406f5c 100644
--- a/setuptools/tests/test_bdist_egg.py
+++ b/setuptools/tests/test_bdist_egg.py
@@ -4,7 +4,6 @@ import os
import re
import shutil
import site
-import sys
import tempfile
import unittest
@@ -29,20 +28,18 @@ class TestDevelopTest(unittest.TestCase):
f.write(SETUP_PY)
with open('hi.py', 'w') as f:
f.write('1\n')
- if sys.version >= "2.6":
- self.old_base = site.USER_BASE
- site.USER_BASE = tempfile.mkdtemp()
- self.old_site = site.USER_SITE
- site.USER_SITE = tempfile.mkdtemp()
+ self.old_base = site.USER_BASE
+ site.USER_BASE = tempfile.mkdtemp()
+ self.old_site = site.USER_SITE
+ site.USER_SITE = tempfile.mkdtemp()
def tearDown(self):
os.chdir(self.old_cwd)
shutil.rmtree(self.dir)
- if sys.version >= "2.6":
- shutil.rmtree(site.USER_BASE)
- shutil.rmtree(site.USER_SITE)
- site.USER_BASE = self.old_base
- site.USER_SITE = self.old_site
+ shutil.rmtree(site.USER_BASE)
+ shutil.rmtree(site.USER_SITE)
+ site.USER_BASE = self.old_base
+ site.USER_SITE = self.old_site
def test_bdist_egg(self):
dist = Distribution(dict(