[Python-checkins] distutils2: Fix my hasty copy-paste
tarek.ziade
python-checkins at python.org
Sat Jul 3 16:19:06 CEST 2010
tarek.ziade pushed e9f471d1a4f6 to distutils2:
http://hg.python.org/distutils2/rev/e9f471d1a4f6
changeset: 239:e9f471d1a4f6
user: ?ric Araujo <merwok at netwok.org>
date: Sun Jun 27 02:19:23 2010 +0200
summary: Fix my hasty copy-paste
files: src/distutils2/_backport/tests/test_pkgutil.py
diff --git a/src/distutils2/_backport/tests/test_pkgutil.py b/src/distutils2/_backport/tests/test_pkgutil.py
--- a/src/distutils2/_backport/tests/test_pkgutil.py
+++ b/src/distutils2/_backport/tests/test_pkgutil.py
@@ -119,8 +119,8 @@
sys.meta_path.insert(0, self.MyTestImporter())
def tearDown(self):
- super(TestPkgUtilPEP302, self).setUp()
del sys.meta_path[0]
+ super(TestPkgUtilPEP302, self).tearDown()
def test_getdata_pep302(self):
# Use a dummy importer/loader
@@ -187,11 +187,11 @@
self.records[distinfo_dir] = dict(record_data)
def tearDown(self):
- super(TestPkgUtilDistribution, self).setUp()
self.records = None
for distinfo_dir in self.distinfo_dirs:
record_file = os.path.join(distinfo_dir, 'RECORD')
open(record_file, 'w').close()
+ super(TestPkgUtilDistribution, self).tearDown()
def test_instantiation(self):
"""Test the Distribution class's instantiation provides us with usable
@@ -306,8 +306,8 @@
sys.path[0:0] = [self.fake_dists_path]
def tearDown(self):
- super(TestPkgUtilPEP376, self).setUp()
sys.path[:] = self.sys_path
+ super(TestPkgUtilPEP376, self).tearDown()
def test_distinfo_dirname(self):
"""Given a name and a version, we expect the distinfo_dirname function
--
Repository URL: http://hg.python.org/distutils2
More information about the Python-checkins
mailing list