-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Update test_exception*.py
from 3.13.5
#5978
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
Update test_exception*.py
from 3.13.5
#5978
Conversation
Important Review skippedReview was skipped due to path filters ⛔ Files ignored due to path filters (7)
CodeRabbit blocks several paths by default. You can override this behavior by explicitly including those paths in the path filters. For example, including You can disable this status message by setting the Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
@@ -1765,272 +1885,6 @@ def test_name_error_has_name(self): | |||
except NameError as exc: | |||
self.assertEqual("bluch", exc.name) | |||
|
|||
def test_name_error_suggestions(self): |
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.
Those tests were moved to test_traceback
, but when I tried to update test_traceback
from 3.13.5 nothing ran. Everything was skipped because we don't have _testcapi
.
How should we proceed?
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.
Usually _testcapi
is used for @cpython_only
tests.
is PurePythonSuggestionFormattingTests also being skipped?
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.
is PurePythonSuggestionFormattingTests also being skipped?
Yes:/
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.
Could you also update test_traceback here? I will check if it is a bug of test suite or intended
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.
Now I see that it requires has_debug_ranges
. which requires the _testinternalcapi
:/
RustPython/Lib/test/support/__init__.py
Lines 505 to 515 in a54873d
def has_no_debug_ranges(): | |
try: | |
import _testinternalcapi | |
except ImportError: | |
raise unittest.SkipTest("_testinternalcapi required") | |
config = _testinternalcapi.get_config() | |
return not bool(config['code_debug_ranges']) | |
def requires_debug_ranges(reason='requires co_positions / debug_ranges'): | |
return unittest.skipIf(has_no_debug_ranges(), reason) | |
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.
If those tests actually doesn't require that feature - because they didn't before update - writing a patch for CPython can be a solution
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.
I'll check. my assumption is that only some of them requires it. we'll see
091775d
to
4515c61
Compare
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.
👍
No description provided.