This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author marco.buttu
Recipients anish.shah, brett.cannon, giampaolo.rodola, gvanrossum, marco.buttu, vstinner, yselivanov
Date 2016-02-11.11:55:14
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
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:14marco.buttusetrecipients: + marco.buttu, gvanrossum, brett.cannon, vstinner, giampaolo.rodola, yselivanov, anish.shah
2016-02-11 11:55:14marco.buttusetmessageid: <>
2016-02-11 11:55:14marco.buttulinkissue26182 messages
2016-02-11 11:55:14marco.buttucreate