[Python-checkins] distutils2: Removed an unused method (test_ensure_string_list was defined twice).
tarek.ziade
python-checkins at python.org
Sun Jan 23 15:48:23 CET 2011
tarek.ziade pushed 258f484a95cb to distutils2:
http://hg.python.org/distutils2/rev/258f484a95cb
changeset: 876:258f484a95cb
user: Louis Munro <lm at louismunro.com>
date: Wed Dec 08 22:00:42 2010 -0500
summary:
Removed an unused method (test_ensure_string_list was defined twice).
files:
distutils2/tests/test_command_cmd.py
diff --git a/distutils2/tests/test_command_cmd.py b/distutils2/tests/test_command_cmd.py
--- a/distutils2/tests/test_command_cmd.py
+++ b/distutils2/tests/test_command_cmd.py
@@ -17,22 +17,6 @@
dist = Distribution()
self.cmd = MyCmd(dist)
- def test_ensure_string_list(self):
-
- cmd = self.cmd
- cmd.not_string_list = ['one', 2, 'three']
- cmd.yes_string_list = ['one', 'two', 'three']
- cmd.not_string_list2 = object()
- cmd.yes_string_list2 = 'ok'
- cmd.ensure_string_list('yes_string_list')
- cmd.ensure_string_list('yes_string_list2')
-
- self.assertRaises(DistutilsOptionError,
- cmd.ensure_string_list, 'not_string_list')
-
- self.assertRaises(DistutilsOptionError,
- cmd.ensure_string_list, 'not_string_list2')
-
def test_make_file(self):
cmd = self.cmd
--
Repository URL: http://hg.python.org/distutils2
More information about the Python-checkins
mailing list