Development of an internal social media platform with personalised dashboards for students
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

raising_non_exception_py3.py 388B

12345678910111213
  1. """The following code should emit a raising-non-exception.
  2. Previously, it didn't, due to a bug in the check for bad-exception-context,
  3. which prevented further checking on the Raise node.
  4. """
  5. # pylint: disable=import-error, too-few-public-methods
  6. from missing_module import missing
  7. class Exc(object):
  8. """Not an actual exception."""
  9. raise Exc from missing # [raising-non-exception]