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

compat. with old Python libs #59

Merged
merged 4 commits into from
Oct 13, 2023
Merged

compat. with old Python libs #59

merged 4 commits into from
Oct 13, 2023

Conversation

dlax
Copy link
Member

@dlax dlax commented Oct 6, 2023

The test suite now passes on these old platforms:

dlax added 4 commits October 6, 2023 14:08
We apparently, from the test suite, don't need version 8.x.
We basically apply the change from
mpounsett/nagiosplugin#24 as a fixture, but
only when nagiosplugin's version is old.
This exception is only present in "recent" version of requests,
typically not in the version distributed by Debian bullseye. Since
requests' JSONDecodeError is in general a subclass of
json.JSONDecodeError, we use the latter, but also handle the plain
ValueError (which json.JSONDecodeError is a subclass of) because
requests might use simplejson (which uses its own JSONDecodeError, also
a subclass of ValueError).
@dlax dlax merged commit 6ee8db1 into master Oct 13, 2023
6 checks passed
@dlax dlax deleted the bullseye branch October 13, 2023 09:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants