-
Notifications
You must be signed in to change notification settings - Fork 22
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
pytest-subtest 0.14.0 fails with Python 3.9 and 3.10 #173
Comments
see also: pytest-dev/pytest-subtests#173 Bug: T381719 Change-Id: I2c7a0e5cc7aea7617070dbce32bc46b072092270
Hi @xqt Thank you for reporting. Locally, when I check, I can see class _Outcome(object):
def __init__(self, result=None):
self.expecting_failure = False
self.result = result
self.result_supports_subtests = hasattr(result, "addSubTest")
self.success = True
self.skipped = []
self.expectedFailure = None
self.errors = [] which have My python 3.9 is |
Ah I see here |
I can reproduce now: @unittest.skip("bonbon")
class T(unittest.TestCase):
def test_foo(self):
assert 1 == 2 It's related to the block
I will open a PR to fix it. |
I hit this as well, and I was able to confirm the branch in the PR fixes the issue for me. |
|
The issue we encountered was covered here: pytest-dev/pytest-subtests#173 And is resolved with the latest changes from this PR: pytest-dev/pytest-subtests#174, and is published in the latest version 0.14.1.
The new pytest-subtest release 0.14.0 fails with Python 3.9 and 3.10. Here is a traceback we got for tests:
See for example: https://integration.wikimedia.org/ci/job/pywikibot-core-tox-fasttest-py39/1805/console
The text was updated successfully, but these errors were encountered: