bpo-29995: re.escape() now escapes only special characters. (#1007)

This commit is contained in:
Serhiy Storchaka 2017-04-13 21:06:43 +03:00 committed by GitHub
parent a6e395dffa
commit 5908300e4b
6 changed files with 40 additions and 51 deletions

View file

@ -221,8 +221,8 @@ class ReplaceDialogTest(unittest.TestCase):
self.assertIn('Invalid Replace Expression', showerror.message)
# test access method
self.engine.setcookedpat("\'")
equal(pv.get(), "\\'")
self.engine.setcookedpat("?")
equal(pv.get(), "\\?")
def test_replace_backwards(self):
equal = self.assertEqual