diff options
| author | Eric V. Smith <eric@trueblade.com> | 2016-10-31 09:22:08 -0400 |
|---|---|---|
| committer | Eric V. Smith <eric@trueblade.com> | 2016-10-31 09:22:08 -0400 |
| commit | 42454af094fd572a97a6302e8c1226be68c0efa9 (patch) | |
| tree | 29a7b5737fe214a0571af7c6daf53a4d85c6bae4 /Lib/test/test_unicode.py | |
| parent | a99cdb21a7d67ce5d1e3cc93b08eb3b6eecba60b (diff) | |
| download | cpython-git-42454af094fd572a97a6302e8c1226be68c0efa9.tar.gz | |
Issue 28128: Print out better error/warning messages for invalid string escapes.
Diffstat (limited to 'Lib/test/test_unicode.py')
| -rw-r--r-- | Lib/test/test_unicode.py | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/Lib/test/test_unicode.py b/Lib/test/test_unicode.py index fe6cd28c63..0737140ccf 100644 --- a/Lib/test/test_unicode.py +++ b/Lib/test/test_unicode.py @@ -2413,13 +2413,6 @@ class UnicodeTest(string_tests.CommonTest, support.check_free_after_iterating(self, iter, str) support.check_free_after_iterating(self, reversed, str) - def test_invalid_sequences(self): - for letter in string.ascii_letters + "89": # 0-7 are octal escapes - if letter in "abfnrtuvxNU": - continue - with self.assertWarns(DeprecationWarning): - eval(r"'\%s'" % letter) - class CAPITest(unittest.TestCase): |
