Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Fix sre-engine wrong repeat context used when multiple max_until recusion #3971

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jul 27, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 0 additions & 24 deletions Lib/test/test_htmlparser.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,6 @@ def test_processing_instruction_only(self):
("pi", "processing instruction ?"),
])

# TODO: RUSTPYTHON
@unittest.expectedFailure
def test_simple_html(self):
self._run_check("""
<!DOCTYPE html PUBLIC 'foo'>
Expand Down Expand Up @@ -258,8 +256,6 @@ def test_startendtag(self):
("endtag", "p"),
])

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

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

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

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

class AttributesTestCase(TestCaseBase):

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

# TODO: RUSTPYTHON
@unittest.expectedFailure
def test_attr_values(self):
self._run_check("""<a b='xxx\n\txxx' c="yyy\t\nyyy" d='\txyz\n'>""",
[("starttag", "a", [("b", "xxx\n\txxx"),
Expand All @@ -646,8 +632,6 @@ def test_attr_values(self):
"<a href=mailto:[email protected]>",
[("starttag", "a", [("href", "mailto:[email protected]")])])

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

# TODO: RUSTPYTHON
@unittest.expectedFailure
def test_attr_funky_names(self):
self._run_check(
"<a a.b='v' c:d=v e-f=v>",
Expand Down Expand Up @@ -718,8 +700,6 @@ def test_malformed_attributes(self):
]
self._run_check(html, expected)

# TODO: RUSTPYTHON
@unittest.expectedFailure
def test_malformed_adjacent_attributes(self):
# see #12629
self._run_check('<x><y z=""o"" /></x>',
Expand All @@ -732,8 +712,6 @@ def test_malformed_adjacent_attributes(self):
('endtag', 'x')])

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

# TODO: RUSTPYTHON
@unittest.expectedFailure
def test_with_unquoted_attributes(self):
# see #12008
html = ("<html><body bgcolor=d0ca90 text='181008'>"
Expand Down
Loading