Message260097
I added the PyErr_WarnEx(PyExc_DeprecationWarning, ...) in Python/ast.c, right below the check for None, True and False as names. Running the following test the message is properly printed:
def test_async(self):
with self.assertWarnsRegex(DeprecationWarning, "reserved keyword"):
async = 33
However, the test does not pass, because the DeprecationWarning is not triggered. I am sorry but as a cpython beginner I can not figure out how to solve the problem, so I hope someone else can find the time to do it |
|
Date |
User |
Action |
Args |
2016-02-11 11:55:14 | marco.buttu | set | recipients:
+ marco.buttu, gvanrossum, brett.cannon, vstinner, giampaolo.rodola, yselivanov, anish.shah |
2016-02-11 11:55:14 | marco.buttu | set | messageid: <1455191714.82.0.414127090173.issue26182@psf.upfronthosting.co.za> |
2016-02-11 11:55:14 | marco.buttu | link | issue26182 messages |
2016-02-11 11:55:14 | marco.buttu | create | |
|