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

Commit2a6b392

Browse files
[#287] Bug in LocalOperations::rmdirs is fixed (#288)
1 parent1200524 commit2a6b392

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

‎testgres/operations/local_ops.py‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -333,24 +333,24 @@ def rmdirs(self, path, ignore_errors=True, attempts=3, delay=1):
333333
assertattempts>0
334334
assertdelay>=0
335335

336-
attempt=0
336+
a=0
337337
whileTrue:
338-
assertattempt<attempts
339-
attempt+=1
338+
asserta<attempts
339+
a+=1
340340
try:
341341
rmtree(path)
342342
exceptFileNotFoundError:
343343
pass
344344
exceptExceptionase:
345-
ifattempt<attempt:
345+
ifa<attempts:
346346
errMsg="Failed to remove directory {0} on attempt {1} ({2}): {3}".format(
347-
path,attempt,type(e).__name__,e
347+
path,a,type(e).__name__,e
348348
)
349349
logging.warning(errMsg)
350350
time.sleep(delay)
351351
continue
352352

353-
assertattempt==attempts
353+
asserta==attempts
354354
ifnotignore_errors:
355355
raise
356356

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp