We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c879c77 commit ad873c5Copy full SHA for ad873c5
graalpython/lib-python/3/test/test_fstring.py
@@ -656,9 +656,8 @@ def test_backslashes_in_string_part(self):
656
self.assertEqual(f'2\x203', '2 3')
657
self.assertEqual(f'\x203', ' 3')
658
659
- # GraalPython patch: needs warnings support
660
- # with self.assertWarns(DeprecationWarning): # invalid escape sequence
661
- value = eval(r"f'\{6*7}'") # this should be inside the "with" statement
+ with self.assertWarns(DeprecationWarning): # invalid escape sequence
+ value = eval(r"f'\{6*7}'")
662
self.assertEqual(value, '\\42')
663
self.assertEqual(f'\\{6*7}', '\\42')
664
self.assertEqual(fr'\{6*7}', '\\42')
0 commit comments