code: def test_connection_factory_as_positional_arg(self):
      class Factory(sqlite.Connection):
          def __init__(self, *args, **kwargs):
              super(Factory, self).__init__(*args, **kwargs)
  
      regex = (
          r"Passing more than 1 positional argument to _sqlite3.Connection\(\) "
          r"is deprecated. Parameters 'timeout', 'detect_types', "
          r"'isolation_level', 'check_same_thread', 'factory', "
          r"'cached_statements' and 'uri' will become keyword-only "
          r"parameters in Python 3.15."
      )
      with self.assertWarnsRegex(DeprecationWarning, regex) as cm:
          with memory_database(5.0, 0, None, True, Factory) as con:
              self.assertIsNone(con.isolation_level)
              self.assertIsInstance(con, Factory)
      self.assertEqual(cm.filename, __file__)
  
imports: import unittest
  import sqlite3
  from collections.abc import Sequence
  from .util import memory_database
  from .util import MemoryDatabaseMixin
label_desc: Use image node_id 3 for calling the ConnectionFactoryTests obj's underlying member method code with example usage: obj.test_connection_factory_as_positional_arg() without return types