Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite00a16d

Browse files
committed
fix yapf pattern usage in test_simple.py
1 parent0dc92b1 commite00a16d

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

‎tests/test_simple.py‎

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,9 @@
4646

4747
defutil_exists(util):
4848
defgood_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
ifgood_properties(get_bin_path(util)):
@@ -118,9 +117,8 @@ def test_init_unique_system_id(self):
118117
withget_new_node().init().start()asnode0:
119118
id0=node0.execute(query)[0]
120119

121-
# yapf: disable
122-
withscoped_config(cache_initdb=True,
123-
cached_initdb_unique=True)asconfig:
120+
withscoped_config(
121+
cache_initdb=True,cached_initdb_unique=True)asconfig:
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
withget_new_node()asnode:
372370
node.init(allow_streaming=True).start()
373371

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

377376
deftest_replicate(self):

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp