[issue15132] Let unittest.TestProgram()'s defaultTest argument be a list

2014-01-02 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1bbf8c263d3c by R David Murray in branch 'default': Merge and update #17282: Document unittest.main defaultTest argument. http://hg.python.org/cpython/rev/1bbf8c263d3c -- ___ Python tracker

[issue15132] Let unittest.TestProgram()'s defaultTest argument be a list

2013-02-23 Thread Chris Jerdonek
Chris Jerdonek added the comment: > *defaultTest* should probably also be documented in the text I created issue 17282 for this. -- ___ Python tracker ___ __

[issue15132] Let unittest.TestProgram()'s defaultTest argument be a list

2013-02-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4285d13fd3dc by Chris Jerdonek in branch 'default': Add a "Changed in version" to the docs for issue #15132. http://hg.python.org/cpython/rev/4285d13fd3dc -- ___ Python tracker

[issue15132] Let unittest.TestProgram()'s defaultTest argument be a list

2013-02-23 Thread Chris Jerdonek
Chris Jerdonek added the comment: I can take care of the Changed in version. -- ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue15132] Let unittest.TestProgram()'s defaultTest argument be a list

2013-02-23 Thread Chris Jerdonek
Chris Jerdonek added the comment: Thanks, Jyrki and Petri. I just noticed that a "Changed in version" should probably be added at the end of this section: http://docs.python.org/dev/library/unittest.html#unittest.main *defaultTest* should probably also be documented in the text (it currently

[issue15132] Let unittest.TestProgram()'s defaultTest argument be a list

2013-02-23 Thread Petri Lehtinen
Petri Lehtinen added the comment: Applied, thanks! -- resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker ___ __

[issue15132] Let unittest.TestProgram()'s defaultTest argument be a list

2013-02-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4e2bfe6b227a by Petri Lehtinen in branch 'default': Issue #15132: Allow a list for the defaultTest argument of unittest.TestProgram http://hg.python.org/cpython/rev/4e2bfe6b227a -- nosy: +python-dev ___ P

[issue15132] Let unittest.TestProgram()'s defaultTest argument be a list

2012-11-25 Thread Jyrki Pulliainen
Changes by Jyrki Pulliainen : Added file: http://bugs.python.org/file28126/issue15132_py3_no_convert.patch ___ Python tracker ___ ___ Python-b

[issue15132] Let unittest.TestProgram()'s defaultTest argument be a list

2012-11-25 Thread Jyrki Pulliainen
Jyrki Pulliainen added the comment: Yeah, I added the convert names call mostly to make the behavior the same as with passing things from command line. However, then we should probably wrap the case of str argument to _convert_name and the conversion behavior might be bit too implicit. I adde

[issue15132] Let unittest.TestProgram()'s defaultTest argument be a list

2012-11-25 Thread Chris Jerdonek
Chris Jerdonek added the comment: To clarify, I didn't say that _convert_names() should be used. I was just noting that it returns a list. -- ___ Python tracker ___ ___

[issue15132] Let unittest.TestProgram()'s defaultTest argument be a list

2012-11-25 Thread Jyrki Pulliainen
Changes by Jyrki Pulliainen : Removed file: http://bugs.python.org/file27681/issue15132_py2.patch ___ Python tracker ___ ___ Python-bugs-list

[issue15132] Let unittest.TestProgram()'s defaultTest argument be a list

2012-11-25 Thread Jyrki Pulliainen
Jyrki Pulliainen added the comment: I rebased this change on top of 3.4 and in case of an iterable argument it now uses the _convert_names function to convert it to a list of test names. -- Added file: http://bugs.python.org/file28112/issue15132_py3_v2.patch ___

[issue15132] Let unittest.TestProgram()'s defaultTest argument be a list

2012-10-24 Thread Michael Foord
Changes by Michael Foord : -- assignee: -> michael.foord ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:

[issue15132] Let unittest.TestProgram()'s defaultTest argument be a list

2012-10-23 Thread Chris Jerdonek
Chris Jerdonek added the comment: Thanks for the patch. -self.testNames = (self.defaultTest,) +if isinstance(self.defaultTest, str): +self.testNames = (self.defaultTest,) +else: +self.testNames = tuple(self.defaultTest) Is ther

[issue15132] Let unittest.TestProgram()'s defaultTest argument be a list

2012-10-23 Thread Jyrki Pulliainen
Changes by Jyrki Pulliainen : Added file: http://bugs.python.org/file27682/issue15132_py3.patch ___ Python tracker ___ ___ Python-bugs-list ma

[issue15132] Let unittest.TestProgram()'s defaultTest argument be a list

2012-10-23 Thread Jyrki Pulliainen
Jyrki Pulliainen added the comment: Added a patch for passing everything of not type basestring to tuple constructor and assigns that to testnames. -- keywords: +patch nosy: +nailor Added file: http://bugs.python.org/file27681/issue15132_py2.patch __

[issue15132] Let unittest.TestProgram()'s defaultTest argument be a list

2012-10-23 Thread Petri Lehtinen
Changes by Petri Lehtinen : -- nosy: +petri.lehtinen ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue15132] Let unittest.TestProgram()'s defaultTest argument be a list

2012-06-22 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti, michael.foord ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue15132] Let unittest.TestProgram()'s defaultTest argument be a list

2012-06-22 Thread Chris Jerdonek
New submission from Chris Jerdonek : It would be nice if unittest.TestProgram(), aka unittest.main(), allowed one to set self.testNames by programmatically passing in a list of test names. Currently, unittest.main() almost allows this: the constructor sets self.testNames to a 1-tuple containin