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

Commit7bcb4f3

Browse files
committed
minor fixes
1 parent8430468 commit7bcb4f3

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

‎testgres/node.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -584,9 +584,9 @@ def cleanup(self, max_attempts=3):
584584
self.stop()
585585
break# OK
586586
exceptExecUtilException:
587-
pass# one more time
587+
pass# one more time
588588
exceptException:
589-
break# screw this
589+
print('cannot stop node {}'.format(self.name))
590590

591591
attempts+=1
592592

‎tests/test_simple.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,9 +214,13 @@ def test_psql(self):
214214
_sum=node.safe_psql('select sum(w) from horns')
215215
self.assertEqual(_sum,b'6\n')
216216

217+
# check psql's default args, fails
218+
withself.assertRaises(QueryException):
219+
node.psql()
220+
217221
node.stop()
218222

219-
# check psql on stopped node
223+
# check psql on stopped node, fails
220224
withself.assertRaises(QueryException):
221225
node.safe_psql('select 1')
222226

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp