-
Notifications
You must be signed in to change notification settings - Fork 178
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
tests: make use of the stdlib unittest.mock for python 3.3+ #346
tests: make use of the stdlib unittest.mock for python 3.3+ #346
Conversation
Test does not pass. |
@andreafrancia please reopen this PR so that I can make the trivial typo fix for the tests. |
Does not give me a whole lot of time to look at CI results and try to fix them... github does not run CI automatically so I did not have a chance to see this issue until right now. |
You could run pip install on a clean python 2.7 virtual environment. I prefer not to keep open the PR because I can't know how much time will pass before a contributor make the following push. In any case you can fork and activate Actions on your repository, I don't need any of my approval to craft a commit that passes all the tests on this trash-cli repository. |
If you push to a closed PR then GitHub does not let you re-open it until you restore the exact commit sha1 that was the HEAD commit for the PR at the time the PR was closed. It's a huge hassle and requires reverting any pushes anyway. For faster turnaround, it's advisable to override GitHub's default setting -- which doesn't run CI for any first time contributor -- to instead just skip running for "new GitHub users". The purpose of this setting is actually because once upon a time GitHub simply ran CI all the time, but people started spamming GitHub by creating dummy accounts and creating PRs to add Bitcoin miners. There is no implied or explicit problem with automatically running CI by first time contributors to a project that are also longstanding GitHub users (I've had a GitHub account for a decade and made thousands of contributions to one project or another per year, so GitHub knows very well I'm not a spam account auto created by a Bitcoin bot). Unfortunately, GitHub just has horribly bad default settings. :( Anyway, I am definitely available today to make additional pushes, no worries. |
I'm not changing the default settings. Please do test your code before sending a pull request. |
You're shooting yourself in the foot, but fine.
I did. The code passed all tests. The github actions integration didn't. |
I got tired of waiting. #347 |
Fixes: #339
I don't really like the idea of a "compat" module but if one must...