diff options
| author | Eric V. Smith <eric@trueblade.com> | 2016-09-10 01:56:20 (GMT) |
|---|---|---|
| committer | Eric V. Smith <eric@trueblade.com> | 2016-09-10 01:56:20 (GMT) |
| commit | 451d0e38fcf50d976236d7d00ccfe8c1a2305086 (patch) | |
| tree | 29e15833e76714f8f0f8b906871b82c8c1a42967 /Lib/test/test_faulthandler.py | |
| parent | 052828db1538bf0d42d7e256da13c6e183974a13 (diff) | |
| download | cpython-451d0e38fcf50d976236d7d00ccfe8c1a2305086.zip cpython-451d0e38fcf50d976236d7d00ccfe8c1a2305086.tar.gz cpython-451d0e38fcf50d976236d7d00ccfe8c1a2305086.tar.bz2 | |
Issue 27948: Allow backslashes in the literal string portion of f-strings, but not in the expressions. Also, require expressions to begin and end with literal curly braces.
Diffstat (limited to 'Lib/test/test_faulthandler.py')
| -rw-r--r-- | Lib/test/test_faulthandler.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_faulthandler.py b/Lib/test/test_faulthandler.py index d2bd2d2..22ccbc9 100644 --- a/Lib/test/test_faulthandler.py +++ b/Lib/test/test_faulthandler.py @@ -735,11 +735,11 @@ class FaultHandlerTests(unittest.TestCase): ('EXCEPTION_INT_DIVIDE_BY_ZERO', 'int divide by zero'), ('EXCEPTION_STACK_OVERFLOW', 'stack overflow'), ): - self.check_windows_exception(""" + self.check_windows_exception(f""" import faulthandler faulthandler.enable() faulthandler._raise_exception(faulthandler._{exc}) - """.format(exc=exc), + """, 3, name) |
