@@ -475,11 +475,11 @@ def test_synchronous_replication(self):
475475
476476# check formatting
477477assert (
478- '1 ("{}", "{}")' .format (standby1 .name ,standby2 .name )==
479- str ( First ( 1 , ( standby1 , standby2 ))) )# yapf: disable
478+ '1 ("{}", "{}")' .format (standby1 .name ,standby2 .name )== str ( First ( 1 , ( standby1 , standby2 )))
479+ )# yapf: disable
480480assert (
481- 'ANY 1 ("{}", "{}")' .format (standby1 .name ,standby2 .name )==
482- str ( Any ( 1 , ( standby1 , standby2 ))) )# yapf: disable
481+ 'ANY 1 ("{}", "{}")' .format (standby1 .name ,standby2 .name )== str ( Any ( 1 , ( standby1 , standby2 )))
482+ )# yapf: disable
483483
484484# set synchronous_standby_names
485485master .set_synchronous_standbys (First (2 , [standby1 ,standby2 ]))
@@ -592,7 +592,7 @@ def test_logical_catchup(self):
592592node1 .execute ('insert into test values ({0}, {0})' .format (i ))
593593sub .catchup ()
594594res = node2 .execute ('select * from test' )
595- assert (res == [(i ,i , )])
595+ assert (res == [(i ,i , )])
596596node1 .execute ('delete from test' )
597597
598598# @unittest.skipIf(pg_version_ge('10'), 'requires <10')
@@ -1030,7 +1030,7 @@ def test_child_process_dies(self):
10301030cmd = ["timeout" ,"60" ]if os .name == 'nt' else ["sleep" ,"60" ]
10311031
10321032with subprocess .Popen (cmd ,shell = True )as process :# shell=True might be needed on Windows
1033- assert (process .poll ()== None )
1033+ assert (process .poll ()is None )
10341034# collect list of processes currently running
10351035children = psutil .Process (os .getpid ()).children ()
10361036# kill a process, so received children dictionary becomes invalid
@@ -1066,12 +1066,12 @@ def test_the_same_port(self):
10661066with get_new_node ()as node :
10671067node .init ().start ()
10681068assert (node ._should_free_port )
1069- assert (type (node .port )== int )
1069+ assert (type (node .port )== int )# noqa: E721
10701070node_port_copy = node .port
10711071assert (rm_carriage_returns (node .safe_psql ("SELECT 1;" ))== b'1\n ' )
10721072
10731073with get_new_node (port = node .port )as node2 :
1074- assert (type (node2 .port )== int )
1074+ assert (type (node2 .port )== int )# noqa: E721
10751075assert (node2 .port == node .port )
10761076assert not (node2 ._should_free_port )
10771077
@@ -1317,6 +1317,7 @@ def test_set_auto_conf(self):
13171317
13181318for x in testData :
13191319assert x [0 ]+ " = " + x [2 ]in content
1320+
13201321@staticmethod
13211322def helper__skip_test_if_util_not_exist (name :str ):
13221323assert type (name )== str # noqa: E721
@@ -1340,4 +1341,3 @@ def helper__skip_test_if_pg_version_is_ge(version: str):
13401341assert type (version )== str # noqa: E721
13411342if pg_version_ge (version ):
13421343pytest .skip ('requires <{0}' .format (version ))
1343-