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

Commitab279cd

Browse files
committed
improve version handling
1 parent5af8987 commitab279cd

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

‎testgres/testgres.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1157,8 +1157,11 @@ def get_pg_config():
11571157
pg_config_data[key.strip()]=value.strip()
11581158

11591159
# 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')
1160+
version=pg_config_data["VERSION"]
1161+
version=version.split(" ")[-1] \
1162+
.partition('devel')[0] \
1163+
.partition('beta')[0] \
1164+
.partition('rc')[0]
11621165
pg_config_data["VERSION_NUM"]=version
11631166

11641167
returnpg_config_data

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp