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

Skip to content

Commit d9afdcc

Browse files
Merge commit 'de738f9fd8d52345677903bface575d41cbe539c' into D20250223_001--pytest
2 parents 842bc08 + de738f9 commit d9afdcc

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

testgres/node.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -841,8 +841,7 @@ def LOCAL__raise_cannot_start_node__std(from_exception):
841841

842842
log_files0 = log_files1
843843
logging.warning(
844-
"Detected a conflict with using the port {0}. "
845-
"Trying another port after a {1}-second sleep...".format(self.port, timeout)
844+
"Detected a conflict with using the port {0}. Trying another port after a {1}-second sleep...".format(self.port, timeout)
846845
)
847846
time.sleep(timeout)
848847
timeout = min(2 * timeout, 5)

tests/test_simple_remote.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ def test_init__unk_LANG_and_LC_CTYPE(self):
195195
assert "LC_CTYPE" in errMsg
196196
assert unkData[1] in errMsg
197197
assert "warning: setlocale: LC_CTYPE: cannot change locale (" + unkData[1] + "): No such file or directory" in errMsg
198-
assert "postgres" in errMsg
198+
assert ("postgres" in errMsg) or ("PostgreSQL" in errMsg)
199199
break
200200
raise Exception("We expected an error!")
201201
finally:

0 commit comments

Comments
 (0)