()
| 99 | connections = [] |
| 100 | |
| 101 | def get_connection(): |
| 102 | # copy() reuses the existing alias and as such the same pool. |
| 103 | conn = new_connection.copy() |
| 104 | conn.connect() |
| 105 | connections.append(conn) |
| 106 | return conn |
| 107 | |
| 108 | try: |
| 109 | connection_1 = get_connection() # First connection. |
no test coverage detected