From 0bfe830e7aa557c8782cdaea7277590ded4f1af1 Mon Sep 17 00:00:00 2001 From: Ben Lewis Date: Sat, 1 Aug 2020 12:34:05 +1200 Subject: [PATCH] Mark failing test_string.py tests. --- Lib/test/test_string.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Lib/test/test_string.py b/Lib/test/test_string.py index 0be28fdb6..242d211e5 100644 --- a/Lib/test/test_string.py +++ b/Lib/test/test_string.py @@ -272,6 +272,8 @@ class TestTemplate(unittest.TestCase): eq(s.safe_substitute(dict(who='tim', what='ham', meal='dinner')), 'tim likes ham for dinner') + # TODO: RUSTPYTHON + @unittest.expectedFailure def test_invalid_placeholders(self): raises = self.assertRaises s = Template('$who likes $') @@ -298,6 +300,8 @@ class TestTemplate(unittest.TestCase): s = PathPattern('$bag.foo.who likes to eat a bag of $bag.what') self.assertEqual(s.substitute(m), 'tim likes to eat a bag of ham') + # TODO: RUSTPYTHON + @unittest.expectedFailure def test_flags_override(self): class MyPattern(Template): flags = 0 @@ -317,6 +321,8 @@ class TestTemplate(unittest.TestCase): s = MyPattern('$foo ${BAR}') self.assertEqual(s.substitute(m), 'foo BAR') + # TODO: RUSTPYTHON + @unittest.expectedFailure def test_idpattern_override_inside_outside_invalid_unbraced(self): # bpo-1198569: Allow the regexp inside and outside braces to be # different when deriving from Template. @@ -455,6 +461,8 @@ class TestTemplate(unittest.TestCase): s = Template('the self is $self') eq(s.safe_substitute(self='bozo'), 'the self is bozo') + # TODO: RUSTPYTHON + @unittest.expectedFailure def test_delimiter_override(self): eq = self.assertEqual raises = self.assertRaises