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
antigravity tests #60310
Comments
The attached patch adds tests for antigravity. |
Are you serious? |
Ezio is as serious as the antigravity module. *g* |
It's actually a nice example of using unittest.mock. =) |
What happens if test_geohash runs first? It looks like test_antigravity will only pass if it is run first. You could remove the order dependence by ensuring antigravity is not in sys.modules. sys.modules.pop('antigravity', None) |
Oh, this explains it. I was wondering why my browser was opening xkcd whenever I tried running doctest against all modules in the library. |
I'm not sure why we would test undocumented jokes... |
@antoine Aw.. no funny bone in you.. |
Agreed with Antoine. |
The test could be made CPython-specific, but if you think it's not necessary I'll just close the issue. The main reason I wrote this was to experiment a bit with unittest.mock :) |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: