MCPcopy Index your code
hub / github.com/python/cpython / test_non_callable_progress

Method test_non_callable_progress

Lib/test/test_sqlite3/test_backup.py:106–110  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

104 self.assertEqual(journal[0], 0)
105
106 def test_non_callable_progress(self):
107 with self.assertRaises(TypeError) as cm:
108 with memory_database() as bck:
109 self.cx.backup(bck, pages=1, progress='bar')
110 self.assertEqual(str(cm.exception), 'progress argument must be a callable')
111
112 def test_modifying_progress(self):
113 journal = []

Callers

nothing calls this directly

Calls 5

memory_databaseFunction · 0.85
strFunction · 0.85
backupMethod · 0.80
assertRaisesMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected