=================================== FAILURES ===================================
_______________________ test_complex_outputs_unrun_cache _______________________
sphinx_run = <conftest.SphinxFixture object at 0x7f34b8968ad0>
file_regression = <conftest.FileRegression object at 0x7f34b8a05ef0>
check_nbs = <function check_nbs.<locals>._check_nbs at 0x7f34b89cb690>
@pytest.mark.sphinx_params(
"complex_outputs_unrun.ipynb", conf={"nb_execution_mode": "cache"}
)
def test_complex_outputs_unrun_cache(sphinx_run, file_regression, check_nbs):
sphinx_run.build()
# print(sphinx_run.status())
assert sphinx_run.warnings() == ""
> regress_nb_doc(file_regression, sphinx_run, check_nbs)
/builddir/build/BUILD/myst-nb-1.4.0-build/MyST-NB-1.4.0/tests/test_execute.py:217:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/builddir/build/BUILD/myst-nb-1.4.0-build/MyST-NB-1.4.0/tests/test_execute.py:38: in regress_nb_doc
file_regression.check(doctree_string, extension=".xml", encoding="utf-8")
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <conftest.FileRegression object at 0x7f34b8a05ef0>
data = '<document source="complex_outputs_unrun" translation_progress="{\'total\': 0, \'translated\': 0}">\n <container ce... <emphasis>\n some\n markdown\n'
kwargs = {'encoding': 'utf-8', 'extension': '.xml'}
def check(self, data, **kwargs):
> return self.file_regression.check(self._strip_ignores(data), **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
E AssertionError: FILES DIFFER:
E /tmp/pytest-of-mockbuild/pytest-0/test_complex_outputs_unrun_cac0/test_complex_outputs_unrun_cache.xml
E /tmp/pytest-of-mockbuild/pytest-0/test_complex_outputs_unrun_cac0/test_complex_outputs_unrun_cache.obtained.xml
E HTML DIFF: /tmp/pytest-of-mockbuild/pytest-0/test_complex_outputs_unrun_cac0/test_complex_outputs_unrun_cache.obtained.diff.html
E ---
E +++
E @@ -214,7 +214,7 @@
E (√5⋅ⅈ) ⋅⎜─ - ──────⎟ + (-√5⋅ⅈ) ⋅⎜─ + ──────⎟
E ⎝2 5 ⎠ ⎝2 5 ⎠
E <container mime_type="image/png">
E - <image candidates="{'*': '_build/jupyter_execute/6eb6048123e3f61d57d1974b38656227f18e9cb97543c8d59b4418c7c2d40a17.png'}" uri="_build/jupyter_execute/6eb6048123e3f61d57d1974b38656227f18e9cb97543c8d59b4418c7c2d40a17.png">
E + <image candidates="{'*': '_build/jupyter_execute/13b8ca1235ea0301576b74944ed262ee8fd54efbbb3f2ee23355e76c4b7e76f9.png'}" uri="_build/jupyter_execute/13b8ca1235ea0301576b74944ed262ee8fd54efbbb3f2ee23355e76c4b7e76f9.png">
E <container mime_type="text/latex">
E <math_block classes="output text_latex" nowrap="0" number="True" xml:space="preserve">
E \displaystyle \left(\sqrt{5} i\right)^{\alpha} \left(\frac{1}{2} - \frac{2 \sqrt{5} i}{5}\right) + \left(- \sqrt{5} i\right)^{\alpha} \left(\frac{1}{2} + \frac{2 \sqrt{5} i}{5}\right)
/builddir/build/BUILD/myst-nb-1.4.0-build/MyST-NB-1.4.0/tests/conftest.py:316: AssertionError
----------------------------- Captured stderr call -----------------------------
[IPKernelApp] WARNING | debugpy_stream undefined, debugging will not be enabled
_______________________ test_complex_outputs_unrun_auto ________________________
sphinx_run = <conftest.SphinxFixture object at 0x7f34b87f50d0>
file_regression = <conftest.FileRegression object at 0x7f34b87fc210>
check_nbs = <function check_nbs.<locals>._check_nbs at 0x7f34b87f54e0>
@pytest.mark.sphinx_params(
"complex_outputs_unrun.ipynb", conf={"nb_execution_mode": "auto"}
)
def test_complex_outputs_unrun_auto(sphinx_run, file_regression, check_nbs):
sphinx_run.build()
# print(sphinx_run.status())
assert sphinx_run.warnings() == ""
> regress_nb_doc(file_regression, sphinx_run, check_nbs)
/builddir/build/BUILD/myst-nb-1.4.0-build/MyST-NB-1.4.0/tests/test_execute.py:238:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/builddir/build/BUILD/myst-nb-1.4.0-build/MyST-NB-1.4.0/tests/test_execute.py:38: in regress_nb_doc
file_regression.check(doctree_string, extension=".xml", encoding="utf-8")
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <conftest.FileRegression object at 0x7f34b87fc210>
data = '<document source="complex_outputs_unrun" translation_progress="{\'total\': 0, \'translated\': 0}">\n <container ce... <emphasis>\n some\n markdown\n'
kwargs = {'encoding': 'utf-8', 'extension': '.xml'}
def check(self, data, **kwargs):
> return self.file_regression.check(self._strip_ignores(data), **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
E AssertionError: FILES DIFFER:
E /tmp/pytest-of-mockbuild/pytest-0/test_complex_outputs_unrun_aut0/test_complex_outputs_unrun_auto.xml
E /tmp/pytest-of-mockbuild/pytest-0/test_complex_outputs_unrun_aut0/test_complex_outputs_unrun_auto.obtained.xml
E HTML DIFF: /tmp/pytest-of-mockbuild/pytest-0/test_complex_outputs_unrun_aut0/test_complex_outputs_unrun_auto.obtained.diff.html
E ---
E +++
E @@ -214,7 +214,7 @@
E (√5⋅ⅈ) ⋅⎜─ - ──────⎟ + (-√5⋅ⅈ) ⋅⎜─ + ──────⎟
E ⎝2 5 ⎠ ⎝2 5 ⎠
E <container mime_type="image/png">
E - <image candidates="{'*': '_build/jupyter_execute/6eb6048123e3f61d57d1974b38656227f18e9cb97543c8d59b4418c7c2d40a17.png'}" uri="_build/jupyter_execute/6eb6048123e3f61d57d1974b38656227f18e9cb97543c8d59b4418c7c2d40a17.png">
E + <image candidates="{'*': '_build/jupyter_execute/13b8ca1235ea0301576b74944ed262ee8fd54efbbb3f2ee23355e76c4b7e76f9.png'}" uri="_build/jupyter_execute/13b8ca1235ea0301576b74944ed262ee8fd54efbbb3f2ee23355e76c4b7e76f9.png">
E <container mime_type="text/latex">
E <math_block classes="output text_latex" nowrap="0" number="True" xml:space="preserve">
E \displaystyle \left(\sqrt{5} i\right)^{\alpha} \left(\frac{1}{2} - \frac{2 \sqrt{5} i}{5}\right) + \left(- \sqrt{5} i\right)^{\alpha} \left(\frac{1}{2} + \frac{2 \sqrt{5} i}{5}\right)
/builddir/build/BUILD/myst-nb-1.4.0-build/MyST-NB-1.4.0/tests/conftest.py:316: AssertionError
----------------------------- Captured stderr call -----------------------------
[IPKernelApp] WARNING | debugpy_stream undefined, debugging will not be enabled
___________________________ test_custom_convert_auto ___________________________
sphinx_run = <conftest.SphinxFixture object at 0x7f34b2c4eac0>
file_regression = <conftest.FileRegression object at 0x7f34b2c454f0>
check_nbs = <function check_nbs.<locals>._check_nbs at 0x7f34b2c45430>
@pytest.mark.sphinx_params(
"custom-formats.Rmd",
conf={
"nb_execution_mode": "auto",
"nb_custom_formats": {".Rmd": ["jupytext.reads", {"fmt": "Rmd"}]},
},
)
def test_custom_convert_auto(sphinx_run, file_regression, check_nbs):
sphinx_run.build()
# print(sphinx_run.status())
assert sphinx_run.warnings() == ""
> regress_nb_doc(file_regression, sphinx_run, check_nbs)
/builddir/build/BUILD/myst-nb-1.4.0-build/MyST-NB-1.4.0/tests/test_execute.py:342:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/builddir/build/BUILD/myst-nb-1.4.0-build/MyST-NB-1.4.0/tests/test_execute.py:38: in regress_nb_doc
file_regression.check(doctree_string, extension=".xml", encoding="utf-8")
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <conftest.FileRegression object at 0x7f34b2c454f0>
data = '<document source="custom-formats" translation_progress="{\'total\': 0, \'translated\': 0}">\n <section ids="custom...0b88824f0435.png" uri="_build/jupyter_execute/e6067ad6daef044f92d5793349a0a2a37f0dd699ea4d01a7120a0b88824f0435.png">\n'
kwargs = {'encoding': 'utf-8', 'extension': '.xml'}
def check(self, data, **kwargs):
> return self.file_regression.check(self._strip_ignores(data), **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
E AssertionError: FILES DIFFER:
E /tmp/pytest-of-mockbuild/pytest-0/test_custom_convert_auto0/test_custom_convert_auto.xml
E /tmp/pytest-of-mockbuild/pytest-0/test_custom_convert_auto0/test_custom_convert_auto.obtained.xml
E HTML DIFF: /tmp/pytest-of-mockbuild/pytest-0/test_custom_convert_auto0/test_custom_convert_auto.obtained.diff.html
E ---
E +++
E @@ -19,4 +19,4 @@
E <literal_block classes="output text_plain" language="myst-ansi" xml:space="preserve">
E <Figure size 640x480 with 1 Axes>
E <container mime_type="image/png">
E - <image candidates="{'*': '_build/jupyter_execute/321b226a9bda4595da09f9389cea3b97e91b9c089e9bab3feae10e2100fc5c38.png'}" uri="_build/jupyter_execute/321b226a9bda4595da09f9389cea3b97e91b9c089e9bab3feae10e2100fc5c38.png">
E + <image candidates="{'*': '_build/jupyter_execute/e6067ad6daef044f92d5793349a0a2a37f0dd699ea4d01a7120a0b88824f0435.png'}" uri="_build/jupyter_execute/e6067ad6daef044f92d5793349a0a2a37f0dd699ea4d01a7120a0b88824f0435.png">
/builddir/build/BUILD/myst-nb-1.4.0-build/MyST-NB-1.4.0/tests/conftest.py:316: AssertionError
----------------------------- Captured stderr call -----------------------------
[IPKernelApp] WARNING | debugpy_stream undefined, debugging will not be enabled
__________________________ test_custom_convert_cache ___________________________
sphinx_run = <conftest.SphinxFixture object at 0x7f34b29ba510>
file_regression = <conftest.FileRegression object at 0x7f34b292f800>
check_nbs = <function check_nbs.<locals>._check_nbs at 0x7f34b292f740>
@pytest.mark.sphinx_params(
"custom-formats.Rmd",
conf={
"nb_execution_mode": "cache",
"nb_custom_formats": {".Rmd": ["jupytext.reads", {"fmt": "Rmd"}]},
},
)
def test_custom_convert_cache(sphinx_run, file_regression, check_nbs):
"""The outputs should be populated."""
sphinx_run.build()
assert sphinx_run.warnings() == ""
> regress_nb_doc(file_regression, sphinx_run, check_nbs)
/builddir/build/BUILD/myst-nb-1.4.0-build/MyST-NB-1.4.0/tests/test_execute.py:362:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/builddir/build/BUILD/myst-nb-1.4.0-build/MyST-NB-1.4.0/tests/test_execute.py:38: in regress_nb_doc
file_regression.check(doctree_string, extension=".xml", encoding="utf-8")
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <conftest.FileRegression object at 0x7f34b292f800>
data = '<document source="custom-formats" translation_progress="{\'total\': 0, \'translated\': 0}">\n <section ids="custom...0b88824f0435.png" uri="_build/jupyter_execute/e6067ad6daef044f92d5793349a0a2a37f0dd699ea4d01a7120a0b88824f0435.png">\n'
kwargs = {'encoding': 'utf-8', 'extension': '.xml'}
def check(self, data, **kwargs):
> return self.file_regression.check(self._strip_ignores(data), **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
E AssertionError: FILES DIFFER:
E /tmp/pytest-of-mockbuild/pytest-0/test_custom_convert_cache0/test_custom_convert_cache.xml
E /tmp/pytest-of-mockbuild/pytest-0/test_custom_convert_cache0/test_custom_convert_cache.obtained.xml
E HTML DIFF: /tmp/pytest-of-mockbuild/pytest-0/test_custom_convert_cache0/test_custom_convert_cache.obtained.diff.html
E ---
E +++
E @@ -19,4 +19,4 @@
E <literal_block classes="output text_plain" language="myst-ansi" xml:space="preserve">
E <Figure size 640x480 with 1 Axes>
E <container mime_type="image/png">
E - <image candidates="{'*': '_build/jupyter_execute/321b226a9bda4595da09f9389cea3b97e91b9c089e9bab3feae10e2100fc5c38.png'}" uri="_build/jupyter_execute/321b226a9bda4595da09f9389cea3b97e91b9c089e9bab3feae10e2100fc5c38.png">
E + <image candidates="{'*': '_build/jupyter_execute/e6067ad6daef044f92d5793349a0a2a37f0dd699ea4d01a7120a0b88824f0435.png'}" uri="_build/jupyter_execute/e6067ad6daef044f92d5793349a0a2a37f0dd699ea4d01a7120a0b88824f0435.png">
/builddir/build/BUILD/myst-nb-1.4.0-build/MyST-NB-1.4.0/tests/conftest.py:316: AssertionError
----------------------------- Captured stderr call -----------------------------
[IPKernelApp] WARNING | debugpy_stream undefined, debugging will not be enabled
_________________ test_custom_convert_multiple_extensions_auto _________________
sphinx_run = <conftest.SphinxFixture object at 0x7f34b2922970>
file_regression = <conftest.FileRegression object at 0x7f34b2f84e10>
check_nbs = <function check_nbs.<locals>._check_nbs at 0x7f34b28c3c10>
@pytest.mark.sphinx_params(
"custom-formats2.extra.exnt",
conf={
"nb_execution_mode": "auto",
"nb_custom_formats": {".extra.exnt": ["jupytext.reads", {"fmt": "Rmd"}]},
},
)
def test_custom_convert_multiple_extensions_auto(
sphinx_run, file_regression, check_nbs
):
"""The outputs should be populated."""
sphinx_run.build()
assert sphinx_run.warnings() == ""
> regress_nb_doc(file_regression, sphinx_run, check_nbs)
/builddir/build/BUILD/myst-nb-1.4.0-build/MyST-NB-1.4.0/tests/test_execute.py:384:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/builddir/build/BUILD/myst-nb-1.4.0-build/MyST-NB-1.4.0/tests/test_execute.py:38: in regress_nb_doc
file_regression.check(doctree_string, extension=".xml", encoding="utf-8")
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <conftest.FileRegression object at 0x7f34b2f84e10>
data = '<document source="custom-formats2" translation_progress="{\'total\': 0, \'translated\': 0}">\n <section ids="custo...0b88824f0435.png" uri="_build/jupyter_execute/e6067ad6daef044f92d5793349a0a2a37f0dd699ea4d01a7120a0b88824f0435.png">\n'
kwargs = {'encoding': 'utf-8', 'extension': '.xml'}
def check(self, data, **kwargs):
> return self.file_regression.check(self._strip_ignores(data), **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
E AssertionError: FILES DIFFER:
E /tmp/pytest-of-mockbuild/pytest-0/test_custom_convert_multiple_e0/test_custom_convert_multiple_extensions_auto.xml
E /tmp/pytest-of-mockbuild/pytest-0/test_custom_convert_multiple_e0/test_custom_convert_multiple_extensions_auto.obtained.xml
E HTML DIFF: /tmp/pytest-of-mockbuild/pytest-0/test_custom_convert_multiple_e0/test_custom_convert_multiple_extensions_auto.obtained.diff.html
E ---
E +++
E @@ -19,4 +19,4 @@
E <literal_block classes="output text_plain" language="myst-ansi" xml:space="preserve">
E <Figure size 640x480 with 1 Axes>
E <container mime_type="image/png">
E - <image candidates="{'*': '_build/jupyter_execute/321b226a9bda4595da09f9389cea3b97e91b9c089e9bab3feae10e2100fc5c38.png'}" uri="_build/jupyter_execute/321b226a9bda4595da09f9389cea3b97e91b9c089e9bab3feae10e2100fc5c38.png">
E + <image candidates="{'*': '_build/jupyter_execute/e6067ad6daef044f92d5793349a0a2a37f0dd699ea4d01a7120a0b88824f0435.png'}" uri="_build/jupyter_execute/e6067ad6daef044f92d5793349a0a2a37f0dd699ea4d01a7120a0b88824f0435.png">
/builddir/build/BUILD/myst-nb-1.4.0-build/MyST-NB-1.4.0/tests/conftest.py:316: AssertionError
----------------------------- Captured stderr call -----------------------------
[IPKernelApp] WARNING | debugpy_stream undefined, debugging will not be enabled
________________ test_custom_convert_multiple_extensions_cache _________________
sphinx_run = <conftest.SphinxFixture object at 0x7f34b2921470>
file_regression = <conftest.FileRegression object at 0x7f34b28a6030>
check_nbs = <function check_nbs.<locals>._check_nbs at 0x7f34b28809e0>
@pytest.mark.sphinx_params(
"custom-formats2.extra.exnt",
conf={
"nb_execution_mode": "cache",
"nb_custom_formats": {".extra.exnt": ["jupytext.reads", {"fmt": "Rmd"}]},
},
)
def test_custom_convert_multiple_extensions_cache(
sphinx_run, file_regression, check_nbs
):
"""The outputs should be populated."""
sphinx_run.build()
assert sphinx_run.warnings() == ""
> regress_nb_doc(file_regression, sphinx_run, check_nbs)
/builddir/build/BUILD/myst-nb-1.4.0-build/MyST-NB-1.4.0/tests/test_execute.py:406:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/builddir/build/BUILD/myst-nb-1.4.0-build/MyST-NB-1.4.0/tests/test_execute.py:38: in regress_nb_doc
file_regression.check(doctree_string, extension=".xml", encoding="utf-8")
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <conftest.FileRegression object at 0x7f34b28a6030>
data = '<document source="custom-formats2" translation_progress="{\'total\': 0, \'translated\': 0}">\n <section ids="custo...0b88824f0435.png" uri="_build/jupyter_execute/e6067ad6daef044f92d5793349a0a2a37f0dd699ea4d01a7120a0b88824f0435.png">\n'
kwargs = {'encoding': 'utf-8', 'extension': '.xml'}
def check(self, data, **kwargs):
> return self.file_regression.check(self._strip_ignores(data), **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
E AssertionError: FILES DIFFER:
E /tmp/pytest-of-mockbuild/pytest-0/test_custom_convert_multiple_e1/test_custom_convert_multiple_extensions_cache.xml
E /tmp/pytest-of-mockbuild/pytest-0/test_custom_convert_multiple_e1/test_custom_convert_multiple_extensions_cache.obtained.xml
E HTML DIFF: /tmp/pytest-of-mockbuild/pytest-0/test_custom_convert_multiple_e1/test_custom_convert_multiple_extensions_cache.obtained.diff.html
E ---
E +++
E @@ -19,4 +19,4 @@
E <literal_block classes="output text_plain" language="myst-ansi" xml:space="preserve">
E <Figure size 640x480 with 1 Axes>
E <container mime_type="image/png">
E - <image candidates="{'*': '_build/jupyter_execute/321b226a9bda4595da09f9389cea3b97e91b9c089e9bab3feae10e2100fc5c38.png'}" uri="_build/jupyter_execute/321b226a9bda4595da09f9389cea3b97e91b9c089e9bab3feae10e2100fc5c38.png">
E + <image candidates="{'*': '_build/jupyter_execute/e6067ad6daef044f92d5793349a0a2a37f0dd699ea4d01a7120a0b88824f0435.png'}" uri="_build/jupyter_execute/e6067ad6daef044f92d5793349a0a2a37f0dd699ea4d01a7120a0b88824f0435.png">
/builddir/build/BUILD/myst-nb-1.4.0-build/MyST-NB-1.4.0/tests/conftest.py:316: AssertionError
----------------------------- Captured stderr call -----------------------------
[IPKernelApp] WARNING | debugpy_stream undefined, debugging will not be enabled
Prepare a development environment with Matplotlib 3.11.0rc1, then run pytest.
+ /usr/bin/pytest -v
============================= test session starts ==============================
platform linux -- Python 3.14.4, pytest-9.0.3, pluggy-1.6.0 -- /usr/bin/python3
Describe the bug
context
Running a test build against Matplotlib 3.11.0rc1, 6 tests fail
expectation
I expected tests to pass.
bug
Reproduce the bug
Prepare a development environment with Matplotlib 3.11.0rc1, then run pytest.
List your environment
Fedora Rawhide (45)