8000 bpo-40956: [regression] first argument in sqlite3.Connection.backup is mandatory by erlend-aasland · Pull Request #24503 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

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

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

Merged
merged 4 commits into from
Feb 10, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Address review: add test
  • Loading branch information
Erlend E. Aasland committed Feb 10, 2021
commit 6a3f3b4143273ebd7e7c527eb53a8875bf65df74
4 changes: 3 additions & 1 deletion Lib/sqlite3/test/backup.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,11 @@ def verify_backup(self, bckcx):
self.assertEqual(result[0][0], 3)
self.assertEqual(result[1][0], 4)

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

def test_bad_target_filename(self):
with self.assertRaises(TypeError):
Expand Down
0