Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(158027)

Unified Diff: Lib/test/test_unicode.py

Issue 28128: Improve the warning message for invalid escape sequences
Patch Set: Created 3 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Lib/test/test_string_literals.py ('k') | Objects/bytesobject.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
--- a/Lib/test/test_unicode.py Mon Oct 31 08:31:13 2016 +0200
+++ b/Lib/test/test_unicode.py Mon Oct 31 14:28:19 2016 +0200
@@ -2413,13 +2413,6 @@ class UnicodeTest(string_tests.CommonTes
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):
« no previous file with comments | « Lib/test/test_string_literals.py ('k') | Objects/bytesobject.c » ('j') | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+