mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
bpo-29995: re.escape() now escapes only special characters. (#1007)
This commit is contained in:
parent
a6e395dffa
commit
5908300e4b
6 changed files with 40 additions and 51 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue