You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Progress bar is duplicated when used both as a context manager and as an iterable wrapper #301
When used both as context manager (e.g. with) and as iterable wrapper, exhausting the iterable and exiting the with scope causes the progress bar to duplicate.
Fixed on develop: using a bar as both a context manager and an iterable no longer finishes/draws it twice. Locked by tests/test_with.py::test_context_manager_and_iterable_no_duplicate and the reporter's-exact-widget-set variant test_context_manager_and_iterable_reporter_widgets_no_duplicate added in #326. Closing.
Activity
dreamscached commentedon Sep 22, 2024
I assume
finishis invoked twice for some reason, because leaving in either a context manager only or iterable wrapper only, it works as expected.dreamscached commentedon Oct 30, 2024
Bumping because it's still an issue and was not solved.
wolph commentedon Oct 30, 2024
Sorry about he inactivity, I've seen the issue but I've had very little time.
It's definitely a bug :)
Address issues #212, #295 and lock in #301
Address issues #212, #295 and lock in #301
wolph commentedon Jul 18, 2026
Fixed on
develop: using a bar as both a context manager and an iterable no longer finishes/draws it twice. Locked bytests/test_with.py::test_context_manager_and_iterable_no_duplicateand the reporter's-exact-widget-set varianttest_context_manager_and_iterable_reporter_widgets_no_duplicateadded in #326. Closing.Merge pull request #326 from wolph/harden-issue-tests-2