Skip to content

Commit

Permalink
build(deps): bump coverage from 7.6.1 to 7.6.2 (#781)
Browse files Browse the repository at this point in the history
* build(deps): bump coverage from 7.6.1 to 7.6.2

Bumps [coverage](https://github.com/nedbat/coveragepy) from 7.6.1 to 7.6.2.
- [Release notes](https://github.com/nedbat/coveragepy/releases)
- [Changelog](https://github.com/nedbat/coveragepy/blob/master/CHANGES.rst)
- [Commits](nedbat/coveragepy@7.6.1...7.6.2)

---
updated-dependencies:
- dependency-name: coverage
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* drop python 3.8 for coverage

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: mayeut <mayeut@users.noreply.github.com>
  • Loading branch information
dependabot[bot] and mayeut authored Oct 10, 2024
1 parent e708706 commit e5a4a3a
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:

- uses: wntrblm/nox@2024.10.09
with:
python-versions: "3.8, 3.12, pypy3.10"
python-versions: "3.13, pypy3.10"

- name: Install Intel SDE
run: |
Expand Down
15 changes: 7 additions & 8 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def test(session: nox.Session) -> None:
session.run("pytest", *session.posargs, env=env)


@nox.session(python=["3.8", "3.12", "pypy3.10"])
@nox.session(python=["3.13", "pypy3.10"])
def _coverage(session: nox.Session) -> None:
"""internal coverage run. Do not run manually"""
with_sde = "--with-sde" in session.posargs
Expand Down Expand Up @@ -137,13 +137,12 @@ def _coverage(session: nox.Session) -> None:
@nox.session(venv_backend="none")
def coverage(session: nox.Session) -> None:
"""Coverage tests."""
posargs = set(session.posargs)
assert len(posargs & {"--clean", "--report"}) == 0
assert len(posargs - {"--with-sde"}) == 0
posargs.add("--report")
session.notify("_coverage-3.8", ["--clean"])
session.notify("_coverage-pypy3.10", [])
session.notify("_coverage-3.12", posargs)
posargs_ = set(session.posargs)
assert len(posargs_ & {"--clean", "--report"}) == 0
assert len(posargs_ - {"--with-sde"}) == 0
posargs = [*session.posargs, "--report"]
session.notify("_coverage-pypy3.10", ["--clean"])
session.notify("_coverage-3.13", posargs)


@nox.session(python="3.12")
Expand Down
2 changes: 1 addition & 1 deletion requirements-coverage.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-r requirements-test.txt
gcovr==8.0
pytest-cov==5.0.0
coverage==7.6.1
coverage==7.6.2
4 changes: 2 additions & 2 deletions src/pybase64/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,12 +96,12 @@ def bench_one(


def readall(file: BinaryIO) -> bytes:
if file == cast(BinaryIO, sys.stdin):
if sys.version_info[:2] == (3, 8) and file == cast(BinaryIO, sys.stdin): # pragma: no cover
# Python 3 < 3.9 does not honor the binary flag,
# read from the underlying buffer
if hasattr(file, "buffer"):
return cast(BinaryIO, file.buffer).read()
return file.read() # pragma: no cover
return file.read()
# do not close the file
try:
data = file.read()
Expand Down

0 comments on commit e5a4a3a

Please sign in to comment.