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

Refactor failIf to assertFalse for Python 3.12 Compatibility #15

Merged
merged 1 commit into from
May 31, 2023

Conversation

arkamar
Copy link
Contributor

@arkamar arkamar commented May 31, 2023

This commit replaces deprecated failIf calls with assertFalse in the test_resourced_test_case.py file. The failIf method was removed in Python 3.12 [1-3].

[1] https://docs.python.org/3.12/whatsnew/3.12.html#removed
[2] python/cpython#89325
[3] python/cpython#28268

This commit replaces deprecated failIf calls with assertFalse in the
test_resourced_test_case.py file. The failIf method was removed in
Python 3.12 [1-3].

[1] https://docs.python.org/3.12/whatsnew/3.12.html#removed
[2] python/cpython#89325
[3] python/cpython#28268

Signed-off-by: Petr Vaněk <arkamar@atlas.cz>
arkamar added a commit to arkamar/gentoo that referenced this pull request May 31, 2023
It was necessary to patch two tests due to removed failIf method in
py3.12.

Upstream-PR: testing-cabal/testresources#15
Signed-off-by: Petr Vaněk <arkamar@atlas.cz>
Copy link
Contributor

@cjwatson cjwatson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@cjwatson cjwatson merged commit 336f6e2 into testing-cabal:master May 31, 2023
arkamar added a commit to arkamar/gentoo that referenced this pull request May 31, 2023
It was necessary to patch two tests due to removed failIf method in
py3.12.

Upstream-PR: testing-cabal/testresources#15
Signed-off-by: Petr Vaněk <arkamar@atlas.cz>
@arkamar arkamar deleted the py312-tests branch May 31, 2023 10:06
gentoo-bot pushed a commit to gentoo/gentoo that referenced this pull request May 31, 2023
It was necessary to patch two tests due to removed failIf method in
py3.12.

Upstream-PR: testing-cabal/testresources#15
Signed-off-by: Petr Vaněk <arkamar@atlas.cz>
Signed-off-by: Michał Górny <mgorny@gentoo.org>
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