X Tutup
Skip to content

Commit cc8a184

Browse files
authored
Merge pull request #3971 from qingshi163/sre-engine
Fix sre-engine wrong repeat context used when multiple max_until recusion
2 parents 2bdc33a + abc7586 commit cc8a184

File tree

5 files changed

+178
-60
lines changed

5 files changed

+178
-60
lines changed

Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Lib/test/test_htmlparser.py

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,6 @@ def test_processing_instruction_only(self):
112112
("pi", "processing instruction ?"),
113113
])
114114

115-
# TODO: RUSTPYTHON
116-
@unittest.expectedFailure
117115
def test_simple_html(self):
118116
self._run_check("""
119117
<!DOCTYPE html PUBLIC 'foo'>
@@ -258,8 +256,6 @@ def test_startendtag(self):
258256
("endtag", "p"),
259257
])
260258

261-
# TODO: RUSTPYTHON
262-
@unittest.expectedFailure
263259
def test_get_starttag_text(self):
264260
s = """<foo:bar \n one="1"\ttwo=2 >"""
265261
self._run_check_extra(s, [
@@ -345,8 +341,6 @@ def test_condcoms(self):
345341
('comment', '[if lte IE 7]>pretty?<![endif]')]
346342
self._run_check(html, expected)
347343

348-
# TODO: RUSTPYTHON
349-
@unittest.expectedFailure
350344
def test_convert_charrefs(self):
351345
# default value for convert_charrefs is now True
352346
collector = lambda: EventCollectorCharrefs()
@@ -420,8 +414,6 @@ def test_starttag_junk_chars(self):
420414
self._run_check("<a$b >", [('starttag', 'a$b', [])])
421415
self._run_check("<a$b />", [('startendtag', 'a$b', [])])
422416

423-
# TODO: RUSTPYTHON
424-
@unittest.expectedFailure
425417
def test_slashes_in_starttag(self):
426418
self._run_check('<a foo="var"/>', [('startendtag', 'a', [('foo', 'var')])])
427419
html = ('<img width=902 height=250px '
@@ -498,8 +490,6 @@ def test_broken_invalid_end_tag(self):
498490
('data', '"> confuses the parser')]
499491
self._run_check(html, expected)
500492

501-
# TODO: RUSTPYTHON
502-
@unittest.expectedFailure
503493
def test_correct_detection_of_start_tags(self):
504494
# see #13273
505495
html = ('<div style="" ><b>The <a href="some_url">rain</a> '
@@ -618,8 +608,6 @@ def test_convert_charrefs_dropped_text(self):
618608

619609
class AttributesTestCase(TestCaseBase):
620610

621-
# TODO: RUSTPYTHON
622-
@unittest.expectedFailure
623611
def test_attr_syntax(self):
624612
output = [
625613
("starttag", "a", [("b", "v"), ("c", "v"), ("d", "v"), ("e", None)])
@@ -629,8 +617,6 @@ def test_attr_syntax(self):
629617
self._run_check("""<a\nb\n=\n'v'\nc\n=\n"v"\nd\n=\nv\ne>""", output)
630618
self._run_check("""<a\tb\t=\t'v'\tc\t=\t"v"\td\t=\tv\te>""", output)
631619

632-
# TODO: RUSTPYTHON
633-
@unittest.expectedFailure
634620
def test_attr_values(self):
635621
self._run_check("""<a b='xxx\n\txxx' c="yyy\t\nyyy" d='\txyz\n'>""",
636622
[("starttag", "a", [("b", "xxx\n\txxx"),
@@ -646,8 +632,6 @@ def test_attr_values(self):
646632
"<a href=mailto:xyz@example.com>",
647633
[("starttag", "a", [("href", "mailto:xyz@example.com")])])
648634

649-
# TODO: RUSTPYTHON
650-
@unittest.expectedFailure
651635
def test_attr_nonascii(self):
652636
# see issue 7311
653637
self._run_check(
@@ -668,8 +652,6 @@ def test_attr_entity_replacement(self):
668652
"<a b='&amp;&gt;&lt;&quot;&apos;'>",
669653
[("starttag", "a", [("b", "&><\"'")])])
670654

671-
# TODO: RUSTPYTHON
672-
@unittest.expectedFailure
673655
def test_attr_funky_names(self):
674656
self._run_check(
675657
"<a a.b='v' c:d=v e-f=v>",
@@ -718,8 +700,6 @@ def test_malformed_attributes(self):
718700
]
719701
self._run_check(html, expected)
720702

721-
# TODO: RUSTPYTHON
722-
@unittest.expectedFailure
723703
def test_malformed_adjacent_attributes(self):
724704
# see #12629
725705
self._run_check('<x><y z=""o"" /></x>',
@@ -732,8 +712,6 @@ def test_malformed_adjacent_attributes(self):
732712
('endtag', 'x')])
733713

734714
# see #755670 for the following 3 tests
735-
# TODO: RUSTPYTHON
736-
@unittest.expectedFailure
737715
def test_adjacent_attributes(self):
738716
self._run_check('<a width="100%"cellspacing=0>',
739717
[("starttag", "a",
@@ -759,8 +737,6 @@ def test_end_tag_in_attribute_value(self):
759737
[("href", "http://www.example.org/\">;")]),
760738
("data", "spam"), ("endtag", "a")])
761739

762-
# TODO: RUSTPYTHON
763-
@unittest.expectedFailure
764740
def test_with_unquoted_attributes(self):
765741
# see #12008
766742
html = ("<html><body bgcolor=d0ca90 text='181008'>"

0 commit comments

Comments
 (0)
X Tutup