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

Update customized six version #704

Merged
merged 2 commits into from
Dec 8, 2023
Merged

Update customized six version #704

merged 2 commits into from
Dec 8, 2023

Conversation

bene42
Copy link
Contributor

@bene42 bene42 commented Dec 8, 2023

spyne induce a AttributeError during tests in a project using spyne. Update the customized six version.
This may also be related to issue #700.

Regards
Benedikt Spranger

@arskom-jenkins
Copy link

Can one of the admins verify this patch?

@plq plq merged commit 70d2ec7 into arskom:master Dec 8, 2023
@plq
Copy link
Member

plq commented Dec 8, 2023

thanks!

@plq plq mentioned this pull request Dec 8, 2023
t-8ch added a commit to Linutronix/elbe that referenced this pull request Feb 27, 2024
The calls to warnings.simplefilter() modify the global warning
configuration. Doing it at import-time and without
warnings.catch_warnings() means that this configuration is changed in
essentially unpredictable ways.

The call to `warnings.simplefilter('error')` transforms *all*
warnings for *all* modules into exceptions.
This breaks the initvm on bookworm as the six library used by the spyne
library triggers a warning on python3 which then crashes the
application [0].
The emitted warning however is completely harmless and even ignored in
the default configuration.

Instead change the configuration only in the narrow scope it is
necessary in.

[0] arskom/spyne#704

Signed-off-by: Thomas Weißschuh <[email protected]>
Reviewed-by: Benedikt Spranger <[email protected]>
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.

3 participants