[issue7588] unittest.TestCase.shortDescription isn't short anymore

2010-02-05 Thread Michael Foord

Michael Foord  added the comment:

The problem this fix was trying to fix was that if you provide a docstring for 
your test then the test name is ommitted in the report.

This could be fixed in the _TextTestResult instead - changing the 
getDescription() method to always include str(test).

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7588] unittest.TestCase.shortDescription isn't short anymore

2010-02-05 Thread Jean-Paul Calderone

Jean-Paul Calderone  added the comment:

I agree that changing the result object is a better way to implement this 
feature: if the results object wants to report things by *name*, not 
*description*, then it should get the test's *name*, not rely on changing the 
meaning of the test's description method.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7588] unittest.TestCase.shortDescription isn't short anymore

2010-02-06 Thread Michael Foord

Changes by Michael Foord :


--
nosy: +gregory.p.smith

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7588] unittest.TestCase.shortDescription isn't short anymore

2010-02-10 Thread Michael Foord

Michael Foord  added the comment:

Fixed revision 78130.

--
resolution:  -> accepted
stage: needs patch -> committed/rejected
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7588] unittest.TestCase.shortDescription isn't short anymore

2009-12-28 Thread Jean-Paul Calderone

New submission from Jean-Paul Calderone :

Sometime between Python 2.6 and 2.7a1, the
unittest.TestCase.shortDescription method changed from returning just
the test method name to the test method name, in parentheses, the fully
qualified Python name of the test case.

This breaks several Twisted unit tests and, I think, goes against the
expectations users have of the "shortDescription" method.

--
components: Library (Lib)
messages: 96948
nosy: exarkun
severity: normal
status: open
title: unittest.TestCase.shortDescription isn't short anymore
type: behavior
versions: Python 2.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7588] unittest.TestCase.shortDescription isn't short anymore

2009-12-28 Thread R. David Murray

Changes by R. David Murray :


--
nosy: +michael.foord
priority:  -> normal

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7588] unittest.TestCase.shortDescription isn't short anymore

2009-12-28 Thread Michael Foord

Michael Foord  added the comment:

Personally I agree. I'll see if I can find the change (don't think it
was me) and see if there was some kind of rationale.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7588] unittest.TestCase.shortDescription isn't short anymore

2009-12-29 Thread Brian Curtin

Brian Curtin  added the comment:

It looks like this was changed in r70837

--
nosy: +brian.curtin

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7588] unittest.TestCase.shortDescription isn't short anymore

2009-12-29 Thread Brett Cannon

Changes by Brett Cannon :


--
assignee:  -> michael.foord

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7588] unittest.TestCase.shortDescription isn't short anymore

2010-01-12 Thread Brian Curtin

Changes by Brian Curtin :


--
stage:  -> needs patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7588] unittest.TestCase.shortDescription isn't short anymore

2010-01-12 Thread Ezio Melotti

Changes by Ezio Melotti :


--
nosy: +ezio.melotti

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com