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 eric.snow
Recipients brett.cannon, eric.snow
Date 2012-04-20.15:18:58
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1334935139.39.0.293792224706.issue14633@psf.upfronthosting.co.za>
In-reply-to
Content
test_find_module_encoding (in Lib/test/test_imp.py), has the following check:

    self.assertRaisesRegex(SyntaxError,
        r"Non-UTF-8 code starting with '\\xf6'"
        r" in file .*badsyntax_pep3120.py",
        imp.find_module, 'badsyntax_pep3120', path)

It may be worth changing to something like this (aligning with the changes in issue14629):

    self.assertRaisesRegex(SyntaxError,
        r"invalid or missing encoding declaration",
        imp.find_module, 'badsyntax_pep3120', path)
History
Date User Action Args
2012-04-20 15:18:59eric.snowsetrecipients: + eric.snow, brett.cannon
2012-04-20 15:18:59eric.snowsetmessageid: <1334935139.39.0.293792224706.issue14633@psf.upfronthosting.co.za>
2012-04-20 15:18:58eric.snowlinkissue14633 messages
2012-04-20 15:18:58eric.snowcreate