GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — Update `test_exception*.py` from 3.13.5 by ShaharNaveh · Pull Request #5978 · RustPython/RustPython Conversation
|
There was an error while loading. Please reload this page.
|
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
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| except NameError as exc: | ||
| self.assertEqual("bluch", exc.name) | ||
|
|
||
| def test_name_error_suggestions(self): |
There was a problem 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?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem 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?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
is PurePythonSuggestionFormattingTests also being skipped?
Yes:/
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem 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
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem 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) | |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem 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
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem 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
Sorry, something went wrong.
There was an error while loading. Please reload this page.
091775d to
4515c61
Compare
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
👍
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.