Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ jobs:
- macos-latest
- windows-latest
python-version:
- "3.8"
- "3.9"
- "3.10"
- "3.11"
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@

## Unreleased

### Removed

- Dropped Python 3.8.

## 2.0.1 - 2024-10-28

### Fixed
Expand Down
3 changes: 1 addition & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,11 @@ description = "Collection of helper modules for the Dakara Project"
readme = "README.md"
license = {file = "LICENSE"}
dynamic = ["version"]
requires-python = ">= 3.8"
requires-python = ">= 3.9"
classifiers = [
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
Expand Down
16 changes: 10 additions & 6 deletions tests/test_progress_bar.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,11 @@ def test_stderr_on_no_exception(self):
# we patch `sys.stderr` as it is risky to work directly on it, and we
# patch `progressbar.streams.original_stderr` as it is defined at
# module loading
with patch("sys.stderr", stderr), patch(
"progressbar.streams.original_stderr", stderr
), wrap_stderr_progressbar():
with (
patch("sys.stderr", stderr),
patch("progressbar.streams.original_stderr", stderr),
wrap_stderr_progressbar(),
):
wrapped_stderr = sys.stderr

# execute the progressbar without exception
Expand Down Expand Up @@ -161,9 +163,11 @@ class MyException(Exception):
stderr = StringIO()
initial_stderr = sys.stderr

with patch("sys.stderr", stderr), patch(
"progressbar.streams.original_stderr", stderr
), wrap_stderr_progressbar():
with (
patch("sys.stderr", stderr),
patch("progressbar.streams.original_stderr", stderr),
wrap_stderr_progressbar(),
):
wrapped_stderr = sys.stderr

# execute the progressbar with an exception
Expand Down
Loading