Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit67365eb

Browse files
author
vshepard
committed
Fix port bind
1 parent356cd52 commit67365eb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

‎testgres/operations/remote_ops.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
importtempfile
55
importplatform
66

7+
fromutilsimportreserve_port
8+
79
# we support both pg8000 and psycopg2
810
try:
911
importpsycopg2aspglib
@@ -392,7 +394,7 @@ def db_connect(self, dbname, user, password=None, host="localhost", port=5432):
392394
"""
393395
Established SSH tunnel and Connects to a PostgreSQL
394396
"""
395-
self.establish_ssh_tunnel(local_port=port,remote_port=5432)
397+
self.establish_ssh_tunnel(local_port=reserve_port(),remote_port=5432)
396398
try:
397399
conn=pglib.connect(
398400
host=host,

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp