Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make Updater.stop Independent of CancelledError #4126

Merged
merged 8 commits into from Mar 3, 2024

Conversation

Bibo-Joshi
Copy link
Member

See #4125 for discussion

Since the tests for these things usually don't run well on Windows, I haven't run the unit tests yet - let's see.
Adding new unit tests will also likely be chellanging. If the test coverage doesn't drop, I might be content with leaving as is 馃槵

@Bibo-Joshi
Copy link
Member Author

All right, tests seem to be stuck. will have to debug on linux

@Bibo-Joshi Bibo-Joshi marked this pull request as ready for review February 24, 2024 14:15
@Bibo-Joshi
Copy link
Member Author

Test coverage seems to be fine and as expected adjusting the existing tests was already rather annoying, so tbh I'm not eager to try and add another unit test here.
I manually ran the customwebhook as well, which still works fine.

Copy link
Member

@harshil21 harshil21 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

code looks good. Didn't have a very close look at the tests.. they are kind of a black box because of so many Event's. I assume you ran an example bot on both Windows and linux and checked if Ctrl+C works well?

telegram/ext/_updater.py Show resolved Hide resolved
telegram/ext/_updater.py Outdated Show resolved Hide resolved
tests/ext/test_application.py Show resolved Hide resolved
tests/ext/test_updater.py Outdated Show resolved Hide resolved
telegram/ext/_updater.py Show resolved Hide resolved
@Bibo-Joshi
Copy link
Member Author

Didn't have a very close look at the tests.. they are kind of a black box because of so many Event's.

They are certainly not very pretty :/

I assume you ran an example bot on both Windows and linux and checked if Ctrl+C works well?

Yes, I ran echobot & the example from #4125.

@Bibo-Joshi Bibo-Joshi merged commit 20e0f87 into master Mar 3, 2024
24 checks passed
@Bibo-Joshi Bibo-Joshi deleted the refactor-updater-network-retry-stop branch March 3, 2024 18:22
@github-actions github-actions bot locked and limited conversation to collaborators Mar 11, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants