summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/idle_test/test_replace.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2017-04-13 18:06:43 (GMT)
committerGitHub <noreply@github.com>2017-04-13 18:06:43 (GMT)
commit5908300e4b0891fc5ab8bd24fba8fac72012eaa7 (patch)
tree78b1b58197c890909b9d153a7988105498d56659 /Lib/idlelib/idle_test/test_replace.py
parenta6e395dffadf8c5124903c01ad69fefa36b1a935 (diff)
downloadcpython-5908300e4b0891fc5ab8bd24fba8fac72012eaa7.zip
cpython-5908300e4b0891fc5ab8bd24fba8fac72012eaa7.tar.gz
cpython-5908300e4b0891fc5ab8bd24fba8fac72012eaa7.tar.bz2
bpo-29995: re.escape() now escapes only special characters. (#1007)
Diffstat (limited to 'Lib/idlelib/idle_test/test_replace.py')
-rw-r--r--Lib/idlelib/idle_test/test_replace.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/idlelib/idle_test/test_replace.py b/Lib/idlelib/idle_test/test_replace.py
index 9913ed2..2ecbd34 100644
--- a/Lib/idlelib/idle_test/test_replace.py
+++ b/Lib/idlelib/idle_test/test_replace.py
@@ -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