Mark failing test_string.py tests.

This commit is contained in:
Ben Lewis
2020-08-01 12:34:05 +12:00
parent 815572beb3
commit 0bfe830e7a

View File

@@ -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