Skip to content

bpo-40956: [regression] first argument in sqlite3.Connection.backup is mandatory#24503

Merged
berkerpeksag merged 4 commits into
python:masterfrom
erlend-aasland:sqlite-fix-backup
Feb 10, 2021
Merged

bpo-40956: [regression] first argument in sqlite3.Connection.backup is mandatory#24503
berkerpeksag merged 4 commits into
python:masterfrom
erlend-aasland:sqlite-fix-backup

Conversation

@erlend-aasland

@erlend-aasland erlend-aasland commented Feb 10, 2021

Copy link
Copy Markdown
Contributor

Regression introduced by GH-23838.

https://bugs.python.org/issue40956

@erlend-aasland

Copy link
Copy Markdown
Contributor Author

@berkerpeksag would you please review?

@erlend-aasland

Copy link
Copy Markdown
Contributor Author

skip news

@berkerpeksag berkerpeksag left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Could you please add a test case to confirm that the regression is fixed by this?

You can rename test_bad_target_none to test_bad_target and add the new test here:

def test_bad_target_none(self):
with self.assertRaises(TypeError):
self.cx.backup(None)

@bedevere-bot

Copy link
Copy Markdown

A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated.

Once you have made the requested changes, please leave a comment on this pull request containing the phrase I have made the requested changes; please review again. I will then notify any core developers who have left a review that you're ready for them to take another look at this pull request.

@berkerpeksag

Copy link
Copy Markdown
Member

And this is actually need a NEWS entry because the previous PR has already been released in 3.10 alphas.

@erlend-aasland

Copy link
Copy Markdown
Contributor Author

Could you please add a test case to confirm that the regression is fixed by this?

Sure, I'll do it first thing tomorrow.

And this is actually need a NEWS entry because the previous PR has already been released in 3.10 alphas.

I see. Thanks for the heads-up.

@erlend-aasland

Copy link
Copy Markdown
Contributor Author

BTW, will you have time to review #24203 and #24421 any time soon?

@berkerpeksag

Copy link
Copy Markdown
Member

BTW, will you have time to review #24203 and #24421 any time soon?

I'm on holidays at the moment so will see :) They are definitely on my TODO list, though.

@erlend-aasland

erlend-aasland commented Feb 10, 2021

Copy link
Copy Markdown
Contributor Author

BTW, will you have time to review #24203 and #24421 any time soon?

I'm on holidays at the moment so will see :) They are definitely on my TODO list, though.

Oops, sorry! Enjoy your days off :) Thanks!

(I have made the requested changes; please review again)

BTW, not sure about the NEWS entry. It felt a bit clumsy. Let me know if you want me to rephrase it.

@bedevere-bot

Copy link
Copy Markdown

Thanks for making the requested changes!

@berkerpeksag: please review the changes made to this pull request.

@berkerpeksag berkerpeksag left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM!

@erlend-aasland

Copy link
Copy Markdown
Contributor Author

Thanks, @berkerpeksag 🙏🏻

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants