mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
bpo-40956: Fix segfault when Connection.backup is called without target (GH-24503)
This commit is contained in:
parent
749d40a53f
commit
ea46579067
4 changed files with 18 additions and 22 deletions
|
@ -17,9 +17,11 @@ class BackupTests(unittest.TestCase):
|
|||
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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue