Thanks to visit codestin.com Credit goes to github.com
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 a5d6df4 commit 56ae1a8Copy full SHA for 56ae1a8
testgres/utils.py
@@ -212,8 +212,8 @@ def get_pg_version2(os_ops: OsOperations, bin_dir=None):
212
213
# Get raw version (e.g., postgres (PostgreSQL) 9.5.7)
214
postgres_path = os.path.join(bin_dir, 'postgres') if bin_dir else get_bin_path2(os_ops, 'postgres')
215
- _params = [postgres_path, '--version']
216
- raw_ver = os_ops.exec_command(_params, encoding='utf-8')
+ cmd = [postgres_path, '--version']
+ raw_ver = os_ops.exec_command(cmd, encoding='utf-8')
217
218
return parse_pg_version(raw_ver)
219
0 commit comments