Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Fix set_auto_conf with single quotes #153

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Dec 4, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Flake8 E721 is suppressed
  • Loading branch information
dmitry-lipetsk committed Dec 3, 2024
commit 9dd8dfec44ef56f732761d31c94cf98764a820a8
4 changes: 2 additions & 2 deletions testgres/node.py
Original file line number Diff line number Diff line change
Expand Up @@ -1634,7 +1634,7 @@ def set_auto_conf(self, options, config='postgresql.auto.conf', rm_options={}):
current_options[name] = var

for option in options:
assert type(option) == str
assert type(option) == str # noqa: E721
assert option != ""
assert option.strip() == option

Expand Down Expand Up @@ -1699,7 +1699,7 @@ def _get_bin_path(self, filename):
return bin_path

def _escape_config_value(value):
assert type(value) == str
assert type(value) == str # noqa: E721

result = "'"

Expand Down