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

Commiteafa7f0

Browse files
author
vshepard
committed
problem with get_pg_version in Homebrew
Fix issue 87
1 parent1e2255f commiteafa7f0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

‎testgres/utils.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,9 @@ def get_pg_version():
179179
_params= [get_bin_path('postgres'),'--version']
180180
raw_ver=tconf.os_ops.exec_command(_params,encoding='utf-8')
181181

182+
# Remove "(Homebrew)" if present
183+
raw_ver=raw_ver.replace('(Homebrew)','').strip()
184+
182185
# cook version of PostgreSQL
183186
version=raw_ver.strip().split(' ')[-1] \
184187
.partition('devel')[0] \

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp