Skip to content

Commit ef5a014

Browse files
committed
Minor code organization improvement in test.
1 parent 02b8d23 commit ef5a014

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_callbacks.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,9 +159,9 @@ def test_callback_num_times(capsys):
159159
t0 = time.time()
160160
m.callback_num_times(lambda: None, num_millions * one_million)
161161
td = time.time() - t0
162+
rate = num_millions / td if td else 0
163+
rates.append(rate)
162164
with capsys.disabled():
163-
rate = num_millions / td if td else 0
164-
rates.append(rate)
165165
if not rep:
166166
print()
167167
print(

0 commit comments

Comments
 (0)