@@ -1054,7 +1054,7 @@ def test_the_same_port(self):
1054
1054
self .assertTrue (node ._should_free_port )
1055
1055
self .assertEqual (type (node .port ), int )
1056
1056
node_port_copy = node .port
1057
- self .assertEqual (node .safe_psql ("SELECT 1;" ), b'1\n ' )
1057
+ self .assertEqual (rm_carriage_returns ( node .safe_psql ("SELECT 1;" ) ), b'1\n ' )
1058
1058
1059
1059
with get_new_node (port = node .port ) as node2 :
1060
1060
self .assertEqual (type (node2 .port ), int )
@@ -1069,7 +1069,7 @@ def test_the_same_port(self):
1069
1069
# node is still working
1070
1070
self .assertEqual (node .port , node_port_copy )
1071
1071
self .assertTrue (node ._should_free_port )
1072
- self .assertEqual (node .safe_psql ("SELECT 3;" ), b'3\n ' )
1072
+ self .assertEqual (rm_carriage_returns ( node .safe_psql ("SELECT 3;" ) ), b'3\n ' )
1073
1073
1074
1074
class tagPortManagerProxy :
1075
1075
sm_prev_testgres_reserve_port = None
@@ -1175,7 +1175,7 @@ def test_port_rereserve_during_node_start(self):
1175
1175
self .assertTrue (node1 ._should_free_port )
1176
1176
self .assertEqual (type (node1 .port ), int ) # noqa: E721
1177
1177
node1_port_copy = node1 .port
1178
- self .assertEqual (node1 .safe_psql ("SELECT 1;" ), b'1\n ' )
1178
+ self .assertEqual (rm_carriage_returns ( node1 .safe_psql ("SELECT 1;" ) ), b'1\n ' )
1179
1179
1180
1180
with __class__ .tagPortManagerProxy (node1 .port , C_COUNT_OF_BAD_PORT_USAGE ):
1181
1181
assert __class__ .tagPortManagerProxy .sm_DummyPortNumber == node1 .port
@@ -1191,12 +1191,12 @@ def test_port_rereserve_during_node_start(self):
1191
1191
self .assertEqual (__class__ .tagPortManagerProxy .sm_DummyPortTotalUsage , C_COUNT_OF_BAD_PORT_USAGE )
1192
1192
self .assertTrue (node2 .is_started )
1193
1193
1194
- self .assertEqual (node2 .safe_psql ("SELECT 2;" ), b'2\n ' )
1194
+ self .assertEqual (rm_carriage_returns ( node2 .safe_psql ("SELECT 2;" ) ), b'2\n ' )
1195
1195
1196
1196
# node1 is still working
1197
1197
self .assertEqual (node1 .port , node1_port_copy )
1198
1198
self .assertTrue (node1 ._should_free_port )
1199
- self .assertEqual (node1 .safe_psql ("SELECT 3;" ), b'3\n ' )
1199
+ self .assertEqual (rm_carriage_returns ( node1 .safe_psql ("SELECT 3;" ) ), b'3\n ' )
1200
1200
1201
1201
def test_port_conflict (self ):
1202
1202
assert testgres .PostgresNode ._C_MAX_START_ATEMPTS > 1
@@ -1208,7 +1208,7 @@ def test_port_conflict(self):
1208
1208
self .assertTrue (node1 ._should_free_port )
1209
1209
self .assertEqual (type (node1 .port ), int ) # noqa: E721
1210
1210
node1_port_copy = node1 .port
1211
- self .assertEqual (node1 .safe_psql ("SELECT 1;" ), b'1\n ' )
1211
+ self .assertEqual (rm_carriage_returns ( node1 .safe_psql ("SELECT 1;" ) ), b'1\n ' )
1212
1212
1213
1213
with __class__ .tagPortManagerProxy (node1 .port , C_COUNT_OF_BAD_PORT_USAGE ):
1214
1214
assert __class__ .tagPortManagerProxy .sm_DummyPortNumber == node1 .port
@@ -1233,7 +1233,7 @@ def test_port_conflict(self):
1233
1233
# node1 is still working
1234
1234
self .assertEqual (node1 .port , node1_port_copy )
1235
1235
self .assertTrue (node1 ._should_free_port )
1236
- self .assertEqual (node1 .safe_psql ("SELECT 3;" ), b'3\n ' )
1236
+ self .assertEqual (rm_carriage_returns ( node1 .safe_psql ("SELECT 3;" ) ), b'3\n ' )
1237
1237
1238
1238
def test_simple_with_bin_dir (self ):
1239
1239
with get_new_node () as node :
0 commit comments