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

Method factory

Lib/test/test_sqlite3/test_dbapi.py:715–718  ·  view source on GitHub ↗
(database, *args, **kwargs)

Source from the content-addressed store, hash-verified

713
714 def test_factory_database_arg(self):
715 def factory(database, *args, **kwargs):
716 nonlocal database_arg
717 database_arg = database
718 return sqlite.Connection(":memory:", *args, **kwargs)
719
720 for database in (TESTFN, os.fsencode(TESTFN),
721 FakePath(TESTFN), FakePath(os.fsencode(TESTFN))):

Callers 3

make_headerMethod · 0.45
test_initMethod · 0.45
test_validationMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected