Skip to content

Commit a73a728

Browse files
committed
Rename callback so it shows as intentionally wrong
1 parent 167eedd commit a73a728

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

apsw/tests/__main__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1305,11 +1305,11 @@ def __init__(self, filename, flags):
13051305
self.assertRaises(RecursionError, apsw.Connection, "testdb", vfs="vfsa")
13061306
sys.setrecursionlimit(1000)
13071307

1308-
def handler(): # incorrect number of arguments on purpose
1308+
def handler_with_deliberate_wrong_args(): # incorrect number of arguments on purpose
13091309
pass
13101310

13111311
try:
1312-
apsw.config(apsw.SQLITE_CONFIG_LOG, handler)
1312+
apsw.config(apsw.SQLITE_CONFIG_LOG, handler_with_deliberate_wrong_args)
13131313
self.assertRaisesUnraisable(TypeError, apsw.log, 11, "recursion error forced")
13141314
finally:
13151315
apsw.config(apsw.SQLITE_CONFIG_LOG, None)

0 commit comments

Comments
 (0)