[issue12681] unittest expectedFailure could take a message argument like skip does

2021-12-16 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

Such change would break a lot of existing interfaces.

* addUnexpectedSuccess() has a single parameter. The change will add the second 
parameter and will break subclasses of TestResult.
* addExpectedFailure() has two parameter. The change will add the third 
parameter and will break subclasses of TestResult.
* unexpectedSuccesses is a list of tests. The change will make it a list of 
2-tuples and will break users of TestResult.
* expectedFailures is a list of 2-tuples. The change will make it a list of 
3-tuples and will break users of TestResult.

It is too destructive change. I think we can live without a message argument 
for expectedFailure().

--
nosy: +serhiy.storchaka

___
Python tracker 

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



[issue12681] unittest expectedFailure could take a message argument like skip does

2021-06-22 Thread Irit Katriel


Change by Irit Katriel :


--
versions: +Python 3.11 -Python 3.3

___
Python tracker 

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



[issue12681] unittest expectedFailure could take a message argument like skip does

2015-01-02 Thread Robert Collins

Changes by Robert Collins robe...@robertcollins.net:


--
nosy: +rbcollins

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



[issue12681] unittest expectedFailure could take a message argument like skip does

2013-07-10 Thread R. David Murray

R. David Murray added the comment:

Thanks, Adam.  I'm afraid it may be a while before Michael (or anyone else) 
gets a chance to review it and think about the issue some more.

--

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



[issue12681] unittest expectedFailure could take a message argument like skip does

2013-07-06 Thread Adam Collard

Adam Collard added the comment:

I've got a patch for this, but I'm a bit worried about the impact on the 
documented API. I've tried to do the best I could to minimize it through use of 
keyword-arguments but I'm a bit unsure about the change (and the docs too!)

I hope this is useful to someone!

--
Added file: http://bugs.python.org/file30799/new-unittest

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



[issue12681] unittest expectedFailure could take a message argument like skip does

2013-01-31 Thread Adam Collard

Changes by Adam Collard adam.coll...@gmail.com:


--
nosy: +adam-collard

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



[issue12681] unittest expectedFailure could take a message argument like skip does

2011-11-14 Thread Ezio Melotti

Ezio Melotti ezio.melo...@gmail.com added the comment:

Maybe we could add an expected_issue(id) decorator to test.support.

--
nosy: +ezio.melotti

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



[issue12681] unittest expectedFailure could take a message argument like skip does

2011-10-07 Thread Barry A. Warsaw

Barry A. Warsaw ba...@python.org added the comment:

It would be nice if expectedFailure took a bug number and printed a url to the 
tracker.

--
nosy: +barry

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



[issue12681] unittest expectedFailure could take a message argument like skip does

2011-10-07 Thread Michael Foord

Michael Foord mich...@voidspace.org.uk added the comment:

Well, it would be nice for the Python test suite, maybe not so useful for 
external users of the api. Something for regrtest rather than unittest I think.

--

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



[issue12681] unittest expectedFailure could take a message argument like skip does

2011-08-02 Thread R. David Murray

New submission from R. David Murray rdmur...@bitdance.com:

I think that it would be good for expectedFailure to take a message argument 
like skip does.  My thought is that it would be printed both when it is 
triggered (the test fails as expected) so that one case from the verbose output 
why the test is expected to fail, and when the test passes unexpectedly.  My 
specific use case is OS bugs, where we could mark a test as an expected failure 
instead of a skip, and then we would see the unexpected pass when the OS fixes 
the bug, but in the meantime the verbose output would show the 'skip' reason.

Hmm.  I suppose this means I want expectedFailureIf, too...

--
components: Library (Lib)
keywords: easy
messages: 141560
nosy: michael.foord, r.david.murray
priority: low
severity: normal
status: open
title: unittest expectedFailure could take a message argument like skip does
type: feature request
versions: Python 3.3

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



[issue12681] unittest expectedFailure could take a message argument like skip does

2011-08-02 Thread Santoso Wijaya

Changes by Santoso Wijaya santoso.wij...@gmail.com:


--
nosy: +santa4nt

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



[issue12681] unittest expectedFailure could take a message argument like skip does

2011-08-02 Thread Benjamin Peterson

Benjamin Peterson benja...@python.org added the comment:

Too late I'm afraid as expectedFailure not expectedFailure() is the decorator.

--
nosy: +benjamin.peterson

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



[issue12681] unittest expectedFailure could take a message argument like skip does

2011-08-02 Thread Michael Foord

Michael Foord mich...@voidspace.org.uk added the comment:

Well, expectedFailure could dispatch on the type of the argument, with 
different behaviour for strings and anything else (presumed to be a function / 
method). That would be inconsistent with the api for skipping though. (I'm not 
wild on the message argument to the skip decorators - I keep forgetting it.)

--

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