GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||
GeezerVison is showing github.com — gh-116622: Mock the passage of time in Android logcat rate limit tests by mhsmith · Pull Request #124015 · python/cpython Conversation
|
| def tearDown(self): | ||
| self.logcat_process.terminate() | ||
| self.logcat_process.wait(LOOPBACK_TIMEOUT) | ||
| self.logcat_thread.join(LOOPBACK_TIMEOUT) |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
This fixes an unrelated warning I saw while running the tests repeatedly with -F:
Warning -- threading._dangling was modified by test_android
Warning -- Before: {<weakref at 0x7c15b68e00; to 'threading._MainThread' at 0x7c18f5fcb0>}
Warning -- After: {<weakref at 0x7c186e3ce0; to 'threading._MainThread' at 0x7c18f5fcb0>, <weakref at 0x7c1870ef20; to 'threading.Thread' at 0x7c183faa50>}
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| stream.write(obj) | ||
|
|
||
|
|
||
| class TestAndroidRateLimit(unittest.TestCase): |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
This test doesn't read its own output, so it doesn't need the @skipIf or the setUp from the other class.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
👍
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Thanks @mhsmith for the PR, and @freakboy3742 for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…t tests (pythonGH-124015) Mock the passage of time in Android logcat rate limit tests (cherry picked from commit f554883) Co-authored-by: Malcolm Smith <[email protected]> Co-authored-by: Russell Keith-Magee <[email protected]>
|
GH-124035 is a backport of this pull request to the 3.13 branch. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…it tests (GH-124015) (#124035) gh-116622: Mock the passage of time in Android logcat rate limit tests (GH-124015) Mock the passage of time in Android logcat rate limit tests (cherry picked from commit f554883) Co-authored-by: Malcolm Smith <[email protected]> Co-authored-by: Russell Keith-Magee <[email protected]>
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.