GeezerVison is showing github.com — gh-104057: Fix direct invocation of test_super by Eclips4 · Pull Request #104064 · python/cpython
Conversation
Eclips4
commented
May 1, 2023
•
edited by bedevere-bot
Loading
Uh oh!
There was an error while loading. Please reload this page.
PS C:\Users\KIRILL-1\CLionProjects\cpython> ./python Lib/test/test_super.py
Running Debug|x64 interpreter...
.................EE............
======================================================================
ERROR: test_shadowed_dynamic (__main__.TestSuper.test_shadowed_dynamic)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Users\KIRILL-1\CLionProjects\cpython\Lib\test\test_super.py", line 363, in test_shadowed_dynamic
self.assertEqual(C().method(), "super super")
^^^^^^^^^^^^
File "C:\Users\KIRILL-1\CLionProjects\cpython\Lib\test\test_super.py", line 360, in method
return super().msg
^^^^^^^^^^^
AttributeError: 'super' object has no attribute 'msg'
======================================================================
ERROR: test_shadowed_dynamic_two_arg (__main__.TestSuper.test_shadowed_dynamic_two_arg)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Users\KIRILL-1\CLionProjects\cpython\Lib\test\test_super.py", line 377, in test_shadowed_dynamic_two_arg
self.assertEqual(C().method(), "super super")
^^^^^^^^^^^^
File "C:\Users\KIRILL-1\CLionProjects\cpython\Lib\test\test_super.py", line 374, in method
return super(1, 2).msg
^^^^^^^^^^^^^^^
TypeError: super() argument 1 must be a type, not int
----------------------------------------------------------------------
Ran 31 tests in 0.040s
FAILED (errors=2)
After fix, error will disappear.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
carljm
added a commit
to carljm/cpython
that referenced
this pull request
May 1, 2023
carljm
added a commit
to carljm/cpython
that referenced
this pull request
May 2, 2023
Reviewers
carljm
carljm approved these changes
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|