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

[PR #5983/6b8e291d backport][3.49] Future proof the pulp_file repair tests for python 3.11 #5987

Conversation

patchback[bot]
Copy link

@patchback patchback bot commented Nov 7, 2024

This is a backport of PR #5983 as merged into main (6b8e291).

This change unblocks the functional pulp_file repair tests when run on a python 3.11+ environment. Stronger typing for the random.sample function is introduced in 3.11 and requires now a Sequence type as an input or it will throw a TypeError.

see: https://docs.python.org/3.11/library/random.html#random.sample

[noissue]

@ggainey ggainey enabled auto-merge (rebase) November 7, 2024 19:01
@gerrod3 gerrod3 force-pushed the patchback/backports/3.49/6b8e291d22d3bb61d42c4dbd7437951aa40d1f2b/pr-5983 branch from ee0dd92 to 3734fba Compare November 11, 2024 19:02
This change unblocks the functional pulp_file repair tests when run on
a python 3.11+ environment. Stronger typing for the random.sample
function is introduced in 3.11 and requires now a Sequence type as an
input or it will throw a TypeError.

see: https://docs.python.org/3.11/library/random.html#random.sample

[noissue]

(cherry picked from commit 6b8e291)
@gerrod3 gerrod3 force-pushed the patchback/backports/3.49/6b8e291d22d3bb61d42c4dbd7437951aa40d1f2b/pr-5983 branch from 3734fba to 86db887 Compare November 11, 2024 20:19
@ggainey ggainey merged commit 614781b into 3.49 Nov 11, 2024
12 checks passed
@ggainey ggainey deleted the patchback/backports/3.49/6b8e291d22d3bb61d42c4dbd7437951aa40d1f2b/pr-5983 branch November 11, 2024 20:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants