-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
[3.13] gh-71339: Add additional assertion methods in test.support (GH-128707) #128815
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
[3.13] gh-71339: Add additional assertion methods in test.support (GH-128707) #128815
Conversation
…honGH-128707) Add a mix-in class ExtraAssertions containing the following methods: * assertHasAttr() and assertNotHasAttr() * assertIsSubclass() and assertNotIsSubclass() * assertStartsWith() and assertNotStartsWith() * assertEndsWith() and assertNotEndsWith() (cherry picked from commit 06cad77)
6f77663
to
ab80b68
Compare
Thanks @serhiy-storchaka for the PR 🌮🎉.. I'm working now to backport this PR to: 3.12. |
Sorry, @serhiy-storchaka, I could not cleanly backport this to
|
…t.support (pythonGH-128707) (pythonGH-128815) Add a mix-in class ExtraAssertions containing the following methods: * assertHasAttr() and assertNotHasAttr() * assertIsSubclass() and assertNotIsSubclass() * assertStartsWith() and assertNotStartsWith() * assertEndsWith() and assertNotEndsWith() (cherry picked from commit c6a566e) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> (cherry picked from commit 06cad77)
GH-129059 is a backport of this pull request to the 3.12 branch. |
…-128707) (GH-128815) (GH-129059) Add a mix-in class ExtraAssertions containing the following methods: * assertHasAttr() and assertNotHasAttr() * assertIsSubclass() and assertNotIsSubclass() * assertStartsWith() and assertNotStartsWith() * assertEndsWith() and assertNotEndsWith() (cherry picked from commit c6a566e) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> (cherry picked from commit 06cad77)
@@ -28,7 +29,7 @@ def anchor02(self): | |||
return importlib.import_module('data02') | |||
|
|||
|
|||
class FunctionalAPIBase(util.DiskSetup): | |||
class FunctionalAPIBase(util.DiskSetup, ExtraAssertions): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The change in this file is going to be overwritten unless ported over to importlib_resources (and backported to support Python 3.9).
Add a mix-in class ExtraAssertions containing the following methods:
(cherry picked from commit 06cad77)
This will help to backport new tests that use new assertion methods.