[Python-checkins] distutils2: pep8 format
tarek.ziade
python-checkins at python.org
Wed Feb 16 22:23:55 CET 2011
tarek.ziade pushed a73c351afd57 to distutils2:
http://hg.python.org/distutils2/rev/a73c351afd57
changeset: 997:a73c351afd57
user: Godefroid Chapelle <gotcha at bubblenet.be>
date: Sun Jan 30 12:38:30 2011 +0100
summary:
pep8 format
files:
distutils2/tests/test_command_check.py
diff --git a/distutils2/tests/test_command_check.py b/distutils2/tests/test_command_check.py
--- a/distutils2/tests/test_command_check.py
+++ b/distutils2/tests/test_command_check.py
@@ -6,13 +6,14 @@
from distutils2.errors import DistutilsSetupError
from distutils2.errors import MetadataMissingError
+
class CheckTestCase(support.LoggingCatcher,
support.TempdirManager,
unittest.TestCase):
def _run(self, metadata=None, **options):
if metadata is None:
- metadata = {'name':'xxx', 'version':'xxx'}
+ metadata = {'name': 'xxx', 'version': 'xxx'}
pkg_info, dist = self.create_dist(**metadata)
cmd = check(dist)
cmd.initialize_options()
@@ -34,7 +35,7 @@
# any warning anymore
metadata = {'home_page': 'xxx', 'author': 'xxx',
'author_email': 'xxx',
- 'name': 'xxx', 'version': 'xxx'
+ 'name': 'xxx', 'version': 'xxx',
}
cmd = self._run(metadata)
self.assertEqual(len(cmd._warnings), 0)
@@ -42,7 +43,8 @@
# now with the strict mode, we should
# get an error if there are missing metadata
self.assertRaises(MetadataMissingError, self._run, {}, **{'strict': 1})
- self.assertRaises(DistutilsSetupError, self._run, {'name':'xxx', 'version':'xxx'}, **{'strict': 1})
+ self.assertRaises(DistutilsSetupError, self._run,
+ {'name': 'xxx', 'version': 'xxx'}, **{'strict': 1})
# and of course, no error when all metadata fields are present
cmd = self._run(metadata, strict=1)
@@ -71,10 +73,12 @@
# now with the strict mode, we should
# get an error if there are missing metadata
self.assertRaises(MetadataMissingError, self._run, {}, **{'strict': 1})
- self.assertRaises(DistutilsSetupError, self._run, {'name':'xxx', 'version':'xxx'}, **{'strict': 1})
+ self.assertRaises(DistutilsSetupError, self._run,
+ {'name': 'xxx', 'version': 'xxx'}, **{'strict': 1})
# complain about version format
- self.assertRaises(DistutilsSetupError, self._run, metadata, **{'strict': 1})
+ self.assertRaises(DistutilsSetupError, self._run, metadata,
+ **{'strict': 1})
# now with correct version format
metadata = {'home_page': 'xxx', 'author': 'xxx',
@@ -102,7 +106,7 @@
def test_check_all(self):
self.assertRaises(DistutilsSetupError, self._run,
- {'name':'xxx', 'version':'xxx'}, **{'strict': 1,
+ {'name': 'xxx', 'version': 'xxx'}, **{'strict': 1,
'all': 1})
self.assertRaises(MetadataMissingError, self._run,
{}, **{'strict': 1,
--
Repository URL: http://hg.python.org/distutils2
More information about the Python-checkins
mailing list