-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Smoke Testing #1926
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Smoke Testing #1926
Conversation
tseries.pyx:564:
dropping the dtype spec doesn't seem to break anything:
and results in a more reasonable error regarding disparate lengths. @wesm , would it be reasonable to drop the dtype? perf-wise, In any case, It seems terribly strange to have a nonecommutative equality operator. |
Dropping the dtype will cause element access to be drastically slower because it will results in Python |
hopefully, that's acceptable. |
Why not use fused types? You could make a mammoth type like cimport cython
ctypedef fused everything_type:
object
cython.numeric
cython.p_char
bytes
unicode This covers objects, any numeric type, and any string type. Dispatch is figured out automatically at compile-time for |
That wasn't working 6 months ago (auto-dispatch from the Python call side). I'm told that it works now and the code could be refactored to use fused types |
I did an experiment with fused types in 21ef7ab and did not find a performance difference fused types are new to me, so I may have missed something. |
datetime64 not supported by Cython yet I don't think (grumble) |
Reason for this pull request was to get feedback on the idea of smoke testing. Not really to report issue on series == operator, now this PR got closed due to commit message fixing it. Is there any interest on smoke testing? |
that was a complete accident with the |
More systematic testing would be a great idea, but would it be possible to split this PR into more Apologies if I mistakenly hijacked the PR, I just saw a legitimate bug laying dormant for a couple edit: my mistake, was fooled by the divergence from trunk, I understand a25fbf2 is the only relavent bit. |
It was my idea to finish this quickly when i opened this. Failed big time. Closing, and do a new PR if i ever get it finished (i need to rebase anyway, i noticed i created this branch from another feature branch iso master.) |
Was thinking on writing smoke tests for Series and DataFrame. Idea is to have "it works"-style of tests on all methods of Series (and later also For DataFrame) for all combinations of index type, value type, and possible input argument combinations.
Current code is certainly not intended to be merged in, just want to introduce the idea.
Smoke tests are easy/quick to write and i think can avoid issues like "method x works fine for y-dtype but unexpectedly raises exception for z-dtype".
Of course it is better to have verification of the output also, and not only check "it works" for all possible cases, but that is much more work and (maybe) for a second phase.
For now, one of the tests smoking
__eq__
, this came out: