summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_string_literals.py
Commit message (Collapse)AuthorAgeFilesLines
* Remove unused imports in tests (GH-14518) (GH-14520)Victor Stinner2019-07-011-1/+0
| | | (cherry picked from commit 8f4ef3b019ce380022018587571b0f970e668de3)
* bpo-35798: Add test.support.check_syntax_warning(). (#11895)Serhiy Storchaka2019-02-191-30/+4
| | | | | | | It checks that a SyntaxWarning is raised when compile specified statement, that it is raised only once, that it is converted to a SyntaxError when raised as exception, and that both warning and exception objects have corresponding attributes.
* bpo-16806: Fix `lineno` and `col_offset` for multi-line string tokens (GH-10021)Anthony Sottile2019-01-131-4/+4
|
* bpo-32912: Replace a DeprecationWarning with a SyntaxWarning (GH-9652)Serhiy Storchaka2018-10-191-6/+6
| | | | for invalid escape sequences in string and bytes literals.
* Fix warn_invalid_escape_sequence()Victor Stinner2016-11-151-0/+20
| | | | | | | | Issue #28691: Fix warn_invalid_escape_sequence(): handle correctly DeprecationWarning raised as an exception. First clear the current exception to replace the DeprecationWarning exception with a SyntaxError exception. Unit test written by Serhiy Storchaka.
* Issue 28128: Print out better error/warning messages for invalid string ↵Eric V. Smith2016-10-311-0/+27
| | | | escapes. Backport to 3.6.
* Rename test_strlit -> test_string_literalsZachary Ware2016-09-091-0/+202