summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_difflib.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2019-01-02 12:49:25 (GMT)
committerGitHub <noreply@github.com>2019-01-02 12:49:25 (GMT)
commit830ddc74c495ac1a5c03172a31006074967571a3 (patch)
treed3ccaa516ce24b6c46553bb76e793192f08a86da /Lib/test/test_difflib.py
parent3a374e0c5abe805667b71ffaaa7614781101ff4c (diff)
downloadcpython-830ddc74c495ac1a5c03172a31006074967571a3.zip
cpython-830ddc74c495ac1a5c03172a31006074967571a3.tar.gz
cpython-830ddc74c495ac1a5c03172a31006074967571a3.tar.bz2
Revert "bpo-35603: Escape table header of make_table output that can cause potential XSS. (GH-11341)" (GH-11356)
This reverts commit 78de01198b047347abc5e458851bb12c48429e24.
Diffstat (limited to 'Lib/test/test_difflib.py')
-rw-r--r--Lib/test/test_difflib.py9
1 files changed, 0 insertions, 9 deletions
diff --git a/Lib/test/test_difflib.py b/Lib/test/test_difflib.py
index 63ebdb0..745ccbd 100644
--- a/Lib/test/test_difflib.py
+++ b/Lib/test/test_difflib.py
@@ -238,15 +238,6 @@ class TestSFpatches(unittest.TestCase):
with open(findfile('test_difflib_expect.html')) as fp:
self.assertEqual(actual, fp.read())
- def test_make_table_escape_table_header(self):
- html_diff = difflib.HtmlDiff()
- output = html_diff.make_table(patch914575_from1.splitlines(),
- patch914575_to1.splitlines(),
- fromdesc='<from>',
- todesc='<to>')
- self.assertIn('&lt;from&gt;', output)
- self.assertIn('&lt;to&gt;', output)
-
def test_recursion_limit(self):
# Check if the problem described in patch #1413711 exists.
limit = sys.getrecursionlimit()