We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1e2255f + eafa7f0 commit 90ab804Copy full SHA for 90ab804
testgres/utils.py
@@ -179,6 +179,9 @@ def get_pg_version():
179
_params = [get_bin_path('postgres'), '--version']
180
raw_ver = tconf.os_ops.exec_command(_params, encoding='utf-8')
181
182
+ # Remove "(Homebrew)" if present
183
+ raw_ver = raw_ver.replace('(Homebrew)', '').strip()
184
+
185
# cook version of PostgreSQL
186
version = raw_ver.strip().split(' ')[-1] \
187
.partition('devel')[0] \
0 commit comments