Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Appply some bugbear suggestions #761

Merged
merged 3 commits into from Jan 12, 2024
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/packaging/_manylinux.py
Expand Up @@ -82,7 +82,7 @@ def _glibc_version_string_confstr() -> Optional[str]:
# https://github.com/python/cpython/blob/fcf1d003bf4f0100c/Lib/platform.py#L175-L183
try:
# Should be a string like "glibc 2.17".
version_string: str = getattr(os, "confstr")("CS_GNU_LIBC_VERSION")
version_string: Optional[str] = os.confstr("CS_GNU_LIBC_VERSION")
assert version_string is not None
_, version = version_string.rsplit()
except (AssertionError, AttributeError, OSError, ValueError):
Expand Down
4 changes: 2 additions & 2 deletions tests/test_structures.py
Expand Up @@ -8,11 +8,11 @@


def test_infinity_repr():
repr(Infinity) == "Infinity"
assert repr(Infinity) == "Infinity"


def test_negative_infinity_repr():
repr(NegativeInfinity) == "-Infinity"
assert repr(NegativeInfinity) == "-Infinity"


def test_infinity_hash():
Expand Down