Skip to content

Commit e00a16d

Browse files
committed
fix yapf pattern usage in test_simple.py
1 parent 0dc92b1 commit e00a16d

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

Diff for: tests/test_simple.py

+5-6
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,9 @@
4646

4747
def util_exists(util):
4848
def good_properties(f):
49-
# yapf: disable
5049
return (os.path.exists(f) and
5150
os.path.isfile(f) and
52-
os.access(f, os.X_OK))
51+
os.access(f, os.X_OK)) # yapf: disable
5352

5453
# try to resolve it
5554
if good_properties(get_bin_path(util)):
@@ -118,9 +117,8 @@ def test_init_unique_system_id(self):
118117
with get_new_node().init().start() as node0:
119118
id0 = node0.execute(query)[0]
120119

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:
124122

125123
self.assertTrue(config.cache_initdb)
126124
self.assertTrue(config.cached_initdb_unique)
@@ -371,7 +369,8 @@ def test_backup_wrong_xlog_method(self):
371369
with get_new_node() as node:
372370
node.init(allow_streaming=True).start()
373371

374-
with self.assertRaises(BackupException, msg='Invalid xlog_method "wrong"'):
372+
with self.assertRaises(
373+
BackupException, msg='Invalid xlog_method "wrong"'):
375374
node.backup(xlog_method='wrong')
376375

377376
def test_replicate(self):

0 commit comments

Comments
 (0)