Skip to content

Commit 485286c

Browse files
apply lint to new retry test code
Signed-off-by: hirokuni-kitahara <[email protected]>
1 parent cbf692e commit 485286c

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

tests/test_retry.py

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import io
22
from contextlib import redirect_stdout
3-
import traceback
3+
44
from pdl.pdl import exec_dict
55

66

@@ -13,14 +13,17 @@ def repeat_retry_data(n: int):
1313
{
1414
"lang": "python",
1515
"code": {
16-
"text": ["raise ValueError('dummy exception')\n", "result = 'World'"]
16+
"text": [
17+
"raise ValueError('dummy exception')\n",
18+
"result = 'World'",
19+
]
1720
},
1821
},
1922
"!\n",
2023
],
21-
"retry": n
24+
"retry": n,
2225
},
23-
"max_iterations": 2
26+
"max_iterations": 2,
2427
}
2528

2629

@@ -67,11 +70,14 @@ def code_retry_data(n: int):
6770
{
6871
"lang": "python",
6972
"code": {
70-
"text": ["raise ValueError('dummy exception')\n", "result = 'hello, world!'"]
73+
"text": [
74+
"raise ValueError('dummy exception')\n",
75+
"result = 'hello, world!'",
76+
]
7177
},
7278
},
7379
],
74-
"retry": n
80+
"retry": n,
7581
}
7682

7783

0 commit comments

Comments
 (0)