File tree 1 file changed +5
-6
lines changed
1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change 46
46
47
47
def util_exists (util ):
48
48
def good_properties (f ):
49
- # yapf: disable
50
49
return (os .path .exists (f ) and
51
50
os .path .isfile (f ) and
52
- os .access (f , os .X_OK ))
51
+ os .access (f , os .X_OK )) # yapf: disable
53
52
54
53
# try to resolve it
55
54
if good_properties (get_bin_path (util )):
@@ -118,9 +117,8 @@ def test_init_unique_system_id(self):
118
117
with get_new_node ().init ().start () as node0 :
119
118
id0 = node0 .execute (query )[0 ]
120
119
121
- # yapf: disable
122
- with scoped_config (cache_initdb = True ,
123
- cached_initdb_unique = True ) as config :
120
+ with scoped_config (
121
+ cache_initdb = True , cached_initdb_unique = True ) as config :
124
122
125
123
self .assertTrue (config .cache_initdb )
126
124
self .assertTrue (config .cached_initdb_unique )
@@ -371,7 +369,8 @@ def test_backup_wrong_xlog_method(self):
371
369
with get_new_node () as node :
372
370
node .init (allow_streaming = True ).start ()
373
371
374
- with self .assertRaises (BackupException , msg = 'Invalid xlog_method "wrong"' ):
372
+ with self .assertRaises (
373
+ BackupException , msg = 'Invalid xlog_method "wrong"' ):
375
374
node .backup (xlog_method = 'wrong' )
376
375
377
376
def test_replicate (self ):
You can’t perform that action at this time.
0 commit comments