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.
1 parent 5af8987 commit ab279cdCopy full SHA for ab279cd
testgres/testgres.py
@@ -1157,8 +1157,11 @@ def get_pg_config():
1157
pg_config_data[key.strip()] = value.strip()
1158
1159
# Fetch version of PostgreSQL and save it as VERSION_NUM
1160
- version_parts = pg_config_data["VERSION"].split(" ")
1161
- version, _, _ = version_parts[-1].partition('beta')
+ version = pg_config_data["VERSION"]
+ version = version.split(" ")[-1] \
1162
+ .partition('devel')[0] \
1163
+ .partition('beta')[0] \
1164
+ .partition('rc')[0]
1165
pg_config_data["VERSION_NUM"] = version
1166
1167
return pg_config_data
0 commit comments