Skip to content

Commit 90ab804

Browse files
authored
Merge pull request #94 from postgrespro/87-get_pg_version-fails-for-postgres-installed-with-homebrew
problem with get_pg_version in Homebrew
2 parents 1e2255f + eafa7f0 commit 90ab804

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy