MCPcopy Create free account
hub / github.com/PyMySQL/mysqlclient / test_context_manager

Method test_context_manager

tests/test_MySQLdb_nonstandard.py:113–116  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

111 self.assertGreaterEqual(self.conn.fileno(), 0)
112
113 def test_context_manager(self):
114 with connection_factory() as conn:
115 self.assertFalse(conn.closed)
116 self.assertTrue(conn.closed)
117
118
119class TestCollation(unittest.TestCase):

Callers

nothing calls this directly

Calls 1

connection_factoryFunction · 0.90

Tested by

no test coverage detected