bpo-40129: Add fake number classes in test.support.#19262
bpo-40129: Add fake number classes in test.support.#19262serhiy-storchaka wants to merge 1 commit into
Conversation
7ccc57f to
cac62dd
Compare
March 31, 2020 21:24
pganssle
left a comment
There was a problem hiding this comment.
Thanks for doing this. The idea seems sound and the datetime implementation seems right.
One suggestion: you should add documentation for this. There is documentation for test.support, but even a block comment before Fake would be helpful to give some additional context to future maintainers and devs about why it's there and when and where you should use it.
Sorry, something went wrong.
|
IMO tests should be primitive and locally understandable. If they get too fancy, it's easy to lose track of what is being tested. So I'm not sure if much is gained here. |
Sorry, something went wrong.
|
The main purpose is to make easier to test that the specified function supports an object that implements I used name |
Sorry, something went wrong.
https://bugs.python.org/issue40129