From 16d388c6d7372809f3d6e124432ab17a54acacce Mon Sep 17 00:00:00 2001 From: Jaime Alonso Lorenzo Date: Mon, 24 Apr 2023 12:49:24 -0600 Subject: [PATCH 1/2] gh-103786: Fix DeprecationWarnings in test_fstring. --- Lib/test/test_fstring.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Lib/test/test_fstring.py b/Lib/test/test_fstring.py index 9d5e16628f04b6..075a7a3675a2d9 100644 --- a/Lib/test/test_fstring.py +++ b/Lib/test/test_fstring.py @@ -963,11 +963,11 @@ def test_roundtrip_raw_quotes(self): self.assertEqual(fr'\"\'\"\'', '\\"\\\'\\"\\\'') def test_fstring_backslash_before_double_bracket(self): - self.assertEqual(f'\{{\}}', '\\{\\}') - self.assertEqual(f'\{{', '\\{') - self.assertEqual(f'\{{{1+1}', '\\{2') - self.assertEqual(f'\}}{1+1}', '\\}2') - self.assertEqual(f'{1+1}\}}', '2\\}') + self.assertEqual(fr'\{{\}}', '\\{\\}') + self.assertEqual(fr'\{{', '\\{') + self.assertEqual(fr'\{{{1+1}', '\\{2') + self.assertEqual(fr'\}}{1+1}', '\\}2') + self.assertEqual(fr'{1+1}\}}', '2\\}') self.assertEqual(fr'\{{\}}', '\\{\\}') self.assertEqual(fr'\{{', '\\{') self.assertEqual(fr'\{{{1+1}', '\\{2') From d43bf0c6c256aec0466461a34c139afe51dbd198 Mon Sep 17 00:00:00 2001 From: "blurb-it[bot]" <43283697+blurb-it[bot]@users.noreply.github.com> Date: Mon, 24 Apr 2023 18:59:06 +0000 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=93=9C=F0=9F=A4=96=20Added=20by=20blu?= =?UTF-8?q?rb=5Fit.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../next/Tests/2023-04-24-18-59-06.gh-issue-103786.PCsCB0.rst | 1 + 1 file changed, 1 insertion(+) create mode 100644 Misc/NEWS.d/next/Tests/2023-04-24-18-59-06.gh-issue-103786.PCsCB0.rst diff --git a/Misc/NEWS.d/next/Tests/2023-04-24-18-59-06.gh-issue-103786.PCsCB0.rst b/Misc/NEWS.d/next/Tests/2023-04-24-18-59-06.gh-issue-103786.PCsCB0.rst new file mode 100644 index 00000000000000..6cf42583355955 --- /dev/null +++ b/Misc/NEWS.d/next/Tests/2023-04-24-18-59-06.gh-issue-103786.PCsCB0.rst @@ -0,0 +1 @@ +Fix DeprecationWarnings in test_fstring.