Skip to content

Commit

Permalink
Remove int()
Browse files Browse the repository at this point in the history
  • Loading branch information
nikita-savelyevv committed Aug 26, 2024
1 parent 38d301c commit c5a07c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/common/utils/test_progress_tracking.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,5 +82,5 @@ def test_track_context_manager(n, is_weighted):
weights = get_sequence(n)
with track(total=n, description="Progress...", weights=weights if is_weighted else None) as pbar:
for i in range(n):
assert int(pbar.progress._tasks[pbar.task].completed) == (sum(weights[:i]) if is_weighted else i)
assert pbar.progress._tasks[pbar.task].completed == (sum(weights[:i]) if is_weighted else i)
pbar.progress.update(pbar.task, advance=1)

0 comments on commit c5a07c6

Please sign in to comment.