Code like this:
raise AssertionError, (3,)
would create an AssertionError(3), whereas it should be AssertionError((3,)),
which needs a fix.
The issue is that CPython internally adds the missing tuple-property to
exception value before calling exception type, except it already has it.
We need to wrap value tuples into one element tuples and it's correct to do it
for all exception values, then CPython run time doesn't have to do it.
|