homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients miss-islington, serhiy.storchaka, vstinner
Date 2021年09月16日.14:46:47
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1631803607.73.0.0576510025905.issue45212@roundup.psfhosted.org>
In-reply-to
Content
Yes, it is a deliberate choice. It is difficult to explain why it was passed without it -- dues to a specific order of calling tearDown() and callbacks registered with addCleanup() in different base classes.
Using an event object would fix it too, but:
* Re-using an existing event object (like self.done) can have side effects in future.
* Introducing a new event object has a risk of name conflicts, because the hierarchy of classes is complicated, and same name can be reused by accident.
* time.sleep() is already used in other similar tests for timeouts. We only need to do a sleep longer then the timeout on the client side (0.01).
Given all this, I decided that adding time.sleep(1) was the simplest, the most obvious, and maybe the most resistant to future human errors way. If we want to use an event object here, we will need to re-consider using time.sleep() in other tests.
What comment do you want to add?
History
Date User Action Args
2021年09月16日 14:46:47serhiy.storchakasetrecipients: + serhiy.storchaka, vstinner, miss-islington
2021年09月16日 14:46:47serhiy.storchakasetmessageid: <1631803607.73.0.0576510025905.issue45212@roundup.psfhosted.org>
2021年09月16日 14:46:47serhiy.storchakalinkissue45212 messages
2021年09月16日 14:46:47serhiy.storchakacreate

AltStyle によって変換されたページ (->オリジナル) /