-
Notifications
You must be signed in to change notification settings - Fork 881
Closed
Labels
bugBug report.Bug report.confirmedConfirmed bug report or approved feature request.Confirmed bug report or approved feature request.
Description
After upgrading Python 3.14.0b2 to Python 3.14.0b3, I'm seeing the following test failures:
$ tox -e py314
py314: recreate env because python changed version_info=[3, 14, 0, 'beta', 2]->[3, 14, 0, 'beta', 3]
py314: remove tox env folder /tmp/markdown/.tox/py314
py314: install_deps> python -I -m pip install pytidylib
.pkg: recreate env because python changed version_info=[3, 14, 0, 'beta', 2]->[3, 14, 0, 'beta', 3]
.pkg: remove tox env folder /tmp/markdown/.tox/.pkg
.pkg: install_requires> python -I -m pip install 'setuptools>=77.0'
.pkg: _optional_hooks> python /usr/lib/python3.14/site-packages/pyproject_api/_backend.py True setuptools.build_meta
.pkg: get_requires_for_build_sdist> python /usr/lib/python3.14/site-packages/pyproject_api/_backend.py True setuptools.build_meta
.pkg: build_sdist> python /usr/lib/python3.14/site-packages/pyproject_api/_backend.py True setuptools.build_meta
py314: install_package_deps> python -I -m pip install coverage 'importlib-metadata>=4.4; python_version < "3.10"' pyyaml
py314: install_package> python -I -m pip install --force-reinstall --no-deps /tmp/markdown/.tox/.tmp/package/6/markdown-3.8.1.tar.gz
py314: commands[0]> coverage run --source=markdown -m unittest discover /tmp/markdown/tests
......................../tmp/markdown/markdown/__main__.py:103: DeprecationWarning: codecs.open() is deprecated. Use open() instead.
with codecs.open(
................../tmp/markdown/markdown/core.py:420: DeprecationWarning: codecs.open() is deprecated. Use open() instead.
input_file = codecs.open(input, mode="r", encoding=encoding)
/tmp/markdown/markdown/core.py:436: DeprecationWarning: codecs.open() is deprecated. Use open() instead.
output_file = codecs.open(output, "w",
......................................................................................s...................................................................................sssssssssssssssssssssssssssssssssssssssssssssss...........................................................................ss...........................................................................................F.................................F.......................................F.....................ss...........................................................................................................................................................................................F.................................F.......................................F.............................................................................................................................................................................................................................................................................
======================================================================
FAIL: test_not_actually_cdata (test_syntax.blocks.test_html_blocks.TestHTMLBlocks.test_not_actually_cdata)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/tmp/markdown/tests/test_syntax/blocks/test_html_blocks.py", line 1280, in test_not_actually_cdata
self.assertMarkdownRenders(
~~~~~~~~~~~~~~~~~~~~~~~~~~^
'<![',
^^^^^^
'<p><![</p>'
^^^^^^^^^^^^^^^
)
^
File "/tmp/markdown/markdown/test_tools.py", line 77, in assertMarkdownRenders
self.assertMultiLineEqual(output, expected)
~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^
AssertionError: '<!--[\n\n-->' != '<p><![</p>'
+ <p><![</p>
- <!--[
-
- -->
======================================================================
FAIL: test_raw_missing_close_bracket (test_syntax.blocks.test_html_blocks.TestHTMLBlocks.test_raw_missing_close_bracket)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/tmp/markdown/tests/test_syntax/blocks/test_html_blocks.py", line 662, in test_raw_missing_close_bracket
self.assertMarkdownRenders(
~~~~~~~~~~~~~~~~~~~~~~~~~~^
'<foo',
^^^^^^^
'<p><foo</p>'
^^^^^^^^^^^^^^^^
)
^
File "/tmp/markdown/markdown/test_tools.py", line 77, in assertMarkdownRenders
self.assertMultiLineEqual(output, expected)
~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^
AssertionError: '' != '<p><foo</p>'
+ <p><foo</p>
======================================================================
FAIL: test_unclosed_comment_ (test_syntax.blocks.test_html_blocks.TestHTMLBlocks.test_unclosed_comment_)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/tmp/markdown/tests/test_syntax/blocks/test_html_blocks.py", line 1022, in test_unclosed_comment_
self.assertMarkdownRenders(
~~~~~~~~~~~~~~~~~~~~~~~~~~^
self.dedent(
^^^^^^^^^^^^
...<11 lines>...
)
^
)
^
File "/tmp/markdown/markdown/test_tools.py", line 77, in assertMarkdownRenders
self.assertMultiLineEqual(output, expected)
~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^
AssertionError: '<!-- unclosed comment\n\n*not* a comment\n\n-->' != '<p><!-- unclosed comment</p>\n<p><em>not</em> a comment</p>'
- <!-- unclosed comment
+ <p><!-- unclosed comment</p>
? ++++++ ++++
+ <p><em>not</em> a comment</p>
-
- *not* a comment
-
- -->
======================================================================
FAIL: test_not_actually_cdata (test_syntax.extensions.test_md_in_html.TestDefaultwMdInHTML.test_not_actually_cdata)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/tmp/markdown/tests/test_syntax/blocks/test_html_blocks.py", line 1280, in test_not_actually_cdata
self.assertMarkdownRenders(
~~~~~~~~~~~~~~~~~~~~~~~~~~^
'<![',
^^^^^^
'<p><![</p>'
^^^^^^^^^^^^^^^
)
^
File "/tmp/markdown/markdown/test_tools.py", line 77, in assertMarkdownRenders
self.assertMultiLineEqual(output, expected)
~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^
AssertionError: '<!--[\n\n-->' != '<p><![</p>'
+ <p><![</p>
- <!--[
-
- -->
======================================================================
FAIL: test_raw_missing_close_bracket (test_syntax.extensions.test_md_in_html.TestDefaultwMdInHTML.test_raw_missing_close_bracket)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/tmp/markdown/tests/test_syntax/blocks/test_html_blocks.py", line 662, in test_raw_missing_close_bracket
self.assertMarkdownRenders(
~~~~~~~~~~~~~~~~~~~~~~~~~~^
'<foo',
^^^^^^^
'<p><foo</p>'
^^^^^^^^^^^^^^^^
)
^
File "/tmp/markdown/markdown/test_tools.py", line 77, in assertMarkdownRenders
self.assertMultiLineEqual(output, expected)
~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^
AssertionError: '' != '<p><foo</p>'
+ <p><foo</p>
======================================================================
FAIL: test_unclosed_comment_ (test_syntax.extensions.test_md_in_html.TestDefaultwMdInHTML.test_unclosed_comment_)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/tmp/markdown/tests/test_syntax/blocks/test_html_blocks.py", line 1022, in test_unclosed_comment_
self.assertMarkdownRenders(
~~~~~~~~~~~~~~~~~~~~~~~~~~^
self.dedent(
^^^^^^^^^^^^
...<11 lines>...
)
^
)
^
File "/tmp/markdown/markdown/test_tools.py", line 77, in assertMarkdownRenders
self.assertMultiLineEqual(output, expected)
~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^
AssertionError: '<!-- unclosed comment\n\n*not* a comment\n\n-->' != '<p><!-- unclosed comment</p>\n<p><em>not</em> a comment</p>'
- <!-- unclosed comment
+ <p><!-- unclosed comment</p>
? ++++++ ++++
+ <p><em>not</em> a comment</p>
-
- *not* a comment
-
- -->
----------------------------------------------------------------------
Ran 1056 tests in 1.743s
FAILED (failures=6, skipped=52)
py314: exit 1 (2.02 seconds) /tmp/markdown> coverage run --source=markdown -m unittest discover /tmp/markdown/tests pid=3540134
py314: FAIL code 1 (8.97=setup[6.96]+cmd[2.02] seconds)
evaluation failed :( (9.06 seconds)
Metadata
Metadata
Assignees
Labels
bugBug report.Bug report.confirmedConfirmed bug report or approved feature request.Confirmed bug report or approved feature request.