[issue17519] unittest should not try to run abstract classes

2013-03-22 Thread Éric Piel
Changes by Éric Piel : Added file: http://bugs.python.org/file29545/fake_abc.py ___ Python tracker <http://bugs.python.org/issue17519> ___ ___ Python-bugs-list mailin

[issue17519] unittest should not try to run abstract classes

2013-03-22 Thread Éric Piel
New submission from Éric Piel: Since Python 2.6 there is the notion if abstract class (ABC). It could be useful to use it for test cases, but unittest doesn't support it. Typically, I'd like to test a bunch of classes which all should behave similarly (at least for some cases). So I

[issue15015] Access to non-existing "future" attribute in error path of futures

2012-06-06 Thread Éric Piel
New submission from Éric Piel : concurrent.futures.Future.set_running_or_notify_cancel() has a reference to self.future, although Future has no future attribute. It's probably due to a copy/paste error. As it's in an error handling code path, most of the time the code is