summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/ColorDelegator.py
diff options
context:
space:
mode:
authorTerry Jan Reedy <tjreedy@udel.edu>2014-05-25 22:44:05 (GMT)
committerTerry Jan Reedy <tjreedy@udel.edu>2014-05-25 22:44:05 (GMT)
commita2fc99eceae7b3dacc1e7280cc01c3b877ce55ab (patch)
treec6593cf545a51196117abd00623081007bf2ce67 /Lib/idlelib/ColorDelegator.py
parente1d54e5f8e63cf8a464a1c4c3d42e4f3a107b83f (diff)
downloadcpython-a2fc99eceae7b3dacc1e7280cc01c3b877ce55ab.zip
cpython-a2fc99eceae7b3dacc1e7280cc01c3b877ce55ab.tar.gz
cpython-a2fc99eceae7b3dacc1e7280cc01c3b877ce55ab.tar.bz2
Issue #21477: Idle htest: modify run; add more tests.
Patch by Saimadhav Heblikar. 2.7 version will follow.
Diffstat (limited to 'Lib/idlelib/ColorDelegator.py')
-rw-r--r--Lib/idlelib/ColorDelegator.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/Lib/idlelib/ColorDelegator.py b/Lib/idlelib/ColorDelegator.py
index d75a3c4..424755f 100644
--- a/Lib/idlelib/ColorDelegator.py
+++ b/Lib/idlelib/ColorDelegator.py
@@ -259,11 +259,9 @@ def _color_delegator(parent):
root.title("Test ColorDelegator")
width, height, x, y = list(map(int, re.split('[x+]', parent.geometry())))
root.geometry("+%d+%d"%(x, y + 150))
- with open(__file__, 'r') as f:
- source = f.read()
+ source = "if somename: x = 'abc' # comment\nprint"
text = Text(root, background="white")
- # insert only a sample portion
- text.insert("insert", source[:690])
+ text.insert("insert", source)
text.pack(expand=1, fill="both")
p = Percolator(text)
d = ColorDelegator()