IronLanguages / IronLanguages/ironpython3
Exception context not set for invalid except expression
Open
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 2.8k
- Forks
- 316
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 1
Description
From test_exceptions (https://github.com/IronLanguages/ironpython3/pull/877)
x = Exception()
try:
try:
raise x
except 12:
assert False
except TypeError as e:
assert e.__context__ is x
May be related to https://github.com/IronLanguages/ironpython3/issues/667.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the test_exceptions case shown in the issue and compare its behavior with the related issue 667. Reproduce the invalid except expression and verify that the resulting TypeError has the raised exception in context; done means the assertion passes.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp, python
- Domain
- compilers
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100