Skip to content
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

Backport PR #25902 on branch v3.7.x (Fix TransformedBbox.{,full_}contains.) #25943

Backport PR #25902: Fix TransformedBbox.{,full_}contains.

a9b4f01
Select commit
Failed to load commit list.
Merged

Backport PR #25902 on branch v3.7.x (Fix TransformedBbox.{,full_}contains.) #25943

Backport PR #25902: Fix TransformedBbox.{,full_}contains.
a9b4f01
Select commit
Failed to load commit list.
Azure Pipelines / matplotlib.matplotlib failed May 22, 2023 in 1h 5m 1s

Build #20230522.3 had test failures

Details

Tests

  • Failed: 13 (0.02%)
  • Passed: 74,621 (89.21%)
  • Other: 9,015 (10.78%)
  • Total: 83,649

Annotations

Check failure on line 2463 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / matplotlib.matplotlib

Build log #L2463

Bash exited with code '1'.

Check failure on line 1 in test_blit

See this annotation in the file changed.

@azure-pipelines azure-pipelines / matplotlib.matplotlib

test_blit

Failed: Subprocess failed to test intended behavior
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/Users/runner/work/1/s/lib/matplotlib/tests/test_backend_tk.py", line 77, in test_blit
    fig, ax = plt.subplots()
  File "/Users/runner/work/1/s/lib/matplotlib/pyplot.py", line 1501, in subplots
    fig = figure(**fig_kw)
  File "/Users/runner/work/1/s/lib/matplotlib/_api/deprecation.py", line 454, in wrapper
    return func(*args, **kwargs)
  File "/Users/runner/work/1/s/lib/matplotlib/pyplot.py", line 840, in figure
    manager = new_figure_manager(
  File "/Users/runner/work/1/s/lib/matplotlib/pyplot.py", line 384, in new_figure_manager
    return _get_backend_mod().new_figure_manager(*args, **kwargs)
  File "/Users/runner/work/1/s/lib/matplotlib/backend_bases.py", line 3574, in new_figure_manager
    return cls.new_figure_manager_given_figure(num, fig)
  File "/Users/runner/work/1/s/lib/matplotlib/backend_bases.py", line 3579, in new_figure_manager_given_figure
    return cls.FigureCanvas.new_manager(figure, num)
  File "/Users/runner/work/1/s/lib/matplotlib/backend_bases.py", line 1742, in new_manager
    return cls.manager_class.create_with_canvas(cls, figure, num)
  File "/Users/runner/work/1/s/lib/matplotlib/backends/_backend_tk.py", line 483, in create_with_canvas
    window = tk.Tk(className="matplotlib")
  File "/Users/runner/hostedtoolcache/Python/3.10.11/x64/lib/python3.10/tkinter/__init__.py", line 2301, in __init__
    self._loadtk()
  File "/Users/runner/hostedtoolcache/Python/3.10.11/x64/lib/python3.10/tkinter/__init__.py", line 2317, in _loadtk
    raise RuntimeError("tk.h version (%s) doesn't match libtk.a version (%s)"
RuntimeError: tk.h version (8.5) doesn't match libtk.a version (8.6)
Raw output
@pytest.mark.skipif(
        not importlib.util.find_spec('tkinter'),
        reason="missing tkinter"
    )
    @pytest.mark.skipif(
        sys.platform == "linux" and not _c_internal_utils.display_is_valid(),
        reason="$DISPLAY and $WAYLAND_DISPLAY are unset"
    )
    @functools.wraps(func)
    def test_func():
        # even if the package exists, may not actually be importable this can
        # be the case on some CI systems.
        pytest.importorskip('tkinter')
        try:
>           proc = subprocess_run_helper(
                func, timeout=_test_timeout, extra_env=dict(
                    MPLBACKEND="TkAgg", MPL_TEST_ESCAPE_HATCH="1"))

lib/matplotlib/tests/test_backend_tk.py:47: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

func = <function test_blit at 0x117c4cb80>, timeout = 60
extra_env = {'MPLBACKEND': 'TkAgg', 'MPL_TEST_ESCAPE_HATCH': '1'}, args = ()
target = 'test_blit'

    def subprocess_run_helper(func, *args, timeout, extra_env=None):
        """
        Run a function in a sub-process.
    
        Parameters
        ----------
        func : function
            The function to be run.  It must be in a module that is importable.
        *args : str
            Any additional command line arguments to be passed in
            the first argument to ``subprocess.run``.
        extra_env : dict[str, str]
            Any additional environment variables to be set for the subprocess.
        """
        target = func.__name__
        module = func.__module__
>       proc = subprocess.run(
            [sys.executable,
             "-c",
             f"from {module} import {target}; {target}()",
             *args],
            env={**os.environ, "SOURCE_DATE_EPOCH": "0", **(extra_env or {})},
            timeout=timeout, check=True,
            stdout=subprocess.PIPE,
            stderr=subprocess.PIPE,
            universal_newlines=True)

lib/matplotlib/testing/__init__.py:69: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

input = None, capture_output = False, timeout = 60, check = True
popenargs = (['/Users/runner/hostedtoolcache/Python/3.10.11/x64/bin/python', '-c', 'from matplotlib.tests.test_backend_tk import test_blit; test_blit()'],)
kwargs = {'env': {'AGENT_ACCEPTTEEEULA': 'True', 'AGENT_BUILDDIRECTORY': '/Users/runner/work/1', 'AGENT_CLOUDID': 'cd56b78d-2d0...'AGENT_DISABLELOGPLUGIN_TESTFILEPUBLISHERPLUGIN': 'true', ...}, 'stderr': -1, 'stdout': -1, 'universal_newlines': True}
process = <Popen: returncode: 1 args: ['/Users/runner/hostedtoolcache/Python/3.10.11/x...>
stdout = ''
stderr = 'Traceback (most recent call last):\n  File "<string>", line 1, in <module>\n  File "/Users/runner/work/1/s/lib/matplo...ion (%s) doesn\'t match libtk.a version (%s)"\nRuntimeError: tk.h version (8.5) doesn\'t match libtk.a version (8.6)\n'
retcode = 1

    def run(*popenargs,
            input=None, capture_output=False, timeout=None, check=False, **kwargs):
        """Run command with arguments and return a CompletedProcess instance.
    
        The returned instance will have attributes args, returncode, stdout and
        stderr. By default, stdout and stderr are not captured, and those attributes
        will be None. Pass stdout=PIPE and/or stderr=PIPE in order to capture them,
        or pass capture_output=True to capture both.
    
        If check is True and the exit code was non-zero, it raises a
        CalledProcessError. The CalledProcessError object will have the return code
        in the returncode attribute, and output & stderr attributes if those streams
        were captured.
    
        If timeout is given, and the process takes too long, a TimeoutExpired
        exception will be raised.
    
        There is an optional argument "input", allowing you to
        pass bytes or a string to the subprocess's stdin.  If you use this argument
        you may not also use the Popen constructor's "stdin" argument, as
 

Check failure on line 1 in test_figuremanager_preserves_host_mainloop

See this annotation in the file changed.

@azure-pipelines azure-pipelines / matplotlib.matplotlib

test_figuremanager_preserves_host_mainloop

Failed: Subprocess failed to test intended behavior
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/Users/runner/work/1/s/lib/matplotlib/tests/test_backend_tk.py", line 114, in test_figuremanager_preserves_host_mainloop
    root = tkinter.Tk()
  File "/Users/runner/hostedtoolcache/Python/3.10.11/x64/lib/python3.10/tkinter/__init__.py", line 2301, in __init__
    self._loadtk()
  File "/Users/runner/hostedtoolcache/Python/3.10.11/x64/lib/python3.10/tkinter/__init__.py", line 2317, in _loadtk
    raise RuntimeError("tk.h version (%s) doesn't match libtk.a version (%s)"
RuntimeError: tk.h version (8.5) doesn't match libtk.a version (8.6)
Raw output
@pytest.mark.skipif(
        not importlib.util.find_spec('tkinter'),
        reason="missing tkinter"
    )
    @pytest.mark.skipif(
        sys.platform == "linux" and not _c_internal_utils.display_is_valid(),
        reason="$DISPLAY and $WAYLAND_DISPLAY are unset"
    )
    @functools.wraps(func)
    def test_func():
        # even if the package exists, may not actually be importable this can
        # be the case on some CI systems.
        pytest.importorskip('tkinter')
        try:
>           proc = subprocess_run_helper(
                func, timeout=_test_timeout, extra_env=dict(
                    MPLBACKEND="TkAgg", MPL_TEST_ESCAPE_HATCH="1"))

lib/matplotlib/tests/test_backend_tk.py:47: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

func = <function test_figuremanager_preserves_host_mainloop at 0x117c4cd30>
timeout = 60, extra_env = {'MPLBACKEND': 'TkAgg', 'MPL_TEST_ESCAPE_HATCH': '1'}
args = (), target = 'test_figuremanager_preserves_host_mainloop'

    def subprocess_run_helper(func, *args, timeout, extra_env=None):
        """
        Run a function in a sub-process.
    
        Parameters
        ----------
        func : function
            The function to be run.  It must be in a module that is importable.
        *args : str
            Any additional command line arguments to be passed in
            the first argument to ``subprocess.run``.
        extra_env : dict[str, str]
            Any additional environment variables to be set for the subprocess.
        """
        target = func.__name__
        module = func.__module__
>       proc = subprocess.run(
            [sys.executable,
             "-c",
             f"from {module} import {target}; {target}()",
             *args],
            env={**os.environ, "SOURCE_DATE_EPOCH": "0", **(extra_env or {})},
            timeout=timeout, check=True,
            stdout=subprocess.PIPE,
            stderr=subprocess.PIPE,
            universal_newlines=True)

lib/matplotlib/testing/__init__.py:69: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

input = None, capture_output = False, timeout = 60, check = True
popenargs = (['/Users/runner/hostedtoolcache/Python/3.10.11/x64/bin/python', '-c', 'from matplotlib.tests.test_backend_tk import test_figuremanager_preserves_host_mainloop; test_figuremanager_preserves_host_mainloop()'],)
kwargs = {'env': {'AGENT_ACCEPTTEEEULA': 'True', 'AGENT_BUILDDIRECTORY': '/Users/runner/work/1', 'AGENT_CLOUDID': 'cd56b78d-2d0...'AGENT_DISABLELOGPLUGIN_TESTFILEPUBLISHERPLUGIN': 'true', ...}, 'stderr': -1, 'stdout': -1, 'universal_newlines': True}
process = <Popen: returncode: 1 args: ['/Users/runner/hostedtoolcache/Python/3.10.11/x...>
stdout = ''
stderr = 'Traceback (most recent call last):\n  File "<string>", line 1, in <module>\n  File "/Users/runner/work/1/s/lib/matplo...ion (%s) doesn\'t match libtk.a version (%s)"\nRuntimeError: tk.h version (8.5) doesn\'t match libtk.a version (8.6)\n'
retcode = 1

    def run(*popenargs,
            input=None, capture_output=False, timeout=None, check=False, **kwargs):
        """Run command with arguments and return a CompletedProcess instance.
    
        The returned instance will have attributes args, returncode, stdout and
        stderr. By default, stdout and stderr are not captured, and those attributes
        will be None. Pass stdout=PIPE and/or stderr=PIPE in order to capture them,
        or pass capture_output=True to capture both.
    
        If check is True and the exit code was non-zero, it raises a
        CalledProcessError. The CalledProcessError object will have the return code
        in the returncode attribute, and output & stderr attributes if those streams
        were captured.
    
        If timeout is given, and the process takes too long, a TimeoutExpired
        exception will be raised.
    
        There is an optional argument "input", allowing you to
        pass bytes or a str

Check failure on line 1 in test_figuremanager_cleans_own_mainloop

See this annotation in the file changed.

@azure-pipelines azure-pipelines / matplotlib.matplotlib

test_figuremanager_cleans_own_mainloop

Failed: Subprocess failed to test intended behavior
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/Users/runner/work/1/s/lib/matplotlib/tests/test_backend_tk.py", line 134, in test_figuremanager_cleans_own_mainloop
    root = tkinter.Tk()
  File "/Users/runner/hostedtoolcache/Python/3.10.11/x64/lib/python3.10/tkinter/__init__.py", line 2301, in __init__
    self._loadtk()
  File "/Users/runner/hostedtoolcache/Python/3.10.11/x64/lib/python3.10/tkinter/__init__.py", line 2317, in _loadtk
    raise RuntimeError("tk.h version (%s) doesn't match libtk.a version (%s)"
RuntimeError: tk.h version (8.5) doesn't match libtk.a version (8.6)
Raw output
@pytest.mark.skipif(
        not importlib.util.find_spec('tkinter'),
        reason="missing tkinter"
    )
    @pytest.mark.skipif(
        sys.platform == "linux" and not _c_internal_utils.display_is_valid(),
        reason="$DISPLAY and $WAYLAND_DISPLAY are unset"
    )
    @functools.wraps(func)
    def test_func():
        # even if the package exists, may not actually be importable this can
        # be the case on some CI systems.
        pytest.importorskip('tkinter')
        try:
>           proc = subprocess_run_helper(
                func, timeout=_test_timeout, extra_env=dict(
                    MPLBACKEND="TkAgg", MPL_TEST_ESCAPE_HATCH="1"))

lib/matplotlib/tests/test_backend_tk.py:47: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

func = <function test_figuremanager_cleans_own_mainloop at 0x117c4ce50>
timeout = 60, extra_env = {'MPLBACKEND': 'TkAgg', 'MPL_TEST_ESCAPE_HATCH': '1'}
args = (), target = 'test_figuremanager_cleans_own_mainloop'

    def subprocess_run_helper(func, *args, timeout, extra_env=None):
        """
        Run a function in a sub-process.
    
        Parameters
        ----------
        func : function
            The function to be run.  It must be in a module that is importable.
        *args : str
            Any additional command line arguments to be passed in
            the first argument to ``subprocess.run``.
        extra_env : dict[str, str]
            Any additional environment variables to be set for the subprocess.
        """
        target = func.__name__
        module = func.__module__
>       proc = subprocess.run(
            [sys.executable,
             "-c",
             f"from {module} import {target}; {target}()",
             *args],
            env={**os.environ, "SOURCE_DATE_EPOCH": "0", **(extra_env or {})},
            timeout=timeout, check=True,
            stdout=subprocess.PIPE,
            stderr=subprocess.PIPE,
            universal_newlines=True)

lib/matplotlib/testing/__init__.py:69: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

input = None, capture_output = False, timeout = 60, check = True
popenargs = (['/Users/runner/hostedtoolcache/Python/3.10.11/x64/bin/python', '-c', 'from matplotlib.tests.test_backend_tk import test_figuremanager_cleans_own_mainloop; test_figuremanager_cleans_own_mainloop()'],)
kwargs = {'env': {'AGENT_ACCEPTTEEEULA': 'True', 'AGENT_BUILDDIRECTORY': '/Users/runner/work/1', 'AGENT_CLOUDID': 'cd56b78d-2d0...'AGENT_DISABLELOGPLUGIN_TESTFILEPUBLISHERPLUGIN': 'true', ...}, 'stderr': -1, 'stdout': -1, 'universal_newlines': True}
process = <Popen: returncode: 1 args: ['/Users/runner/hostedtoolcache/Python/3.10.11/x...>
stdout = ''
stderr = 'Traceback (most recent call last):\n  File "<string>", line 1, in <module>\n  File "/Users/runner/work/1/s/lib/matplo...ion (%s) doesn\'t match libtk.a version (%s)"\nRuntimeError: tk.h version (8.5) doesn\'t match libtk.a version (8.6)\n'
retcode = 1

    def run(*popenargs,
            input=None, capture_output=False, timeout=None, check=False, **kwargs):
        """Run command with arguments and return a CompletedProcess instance.
    
        The returned instance will have attributes args, returncode, stdout and
        stderr. By default, stdout and stderr are not captured, and those attributes
        will be None. Pass stdout=PIPE and/or stderr=PIPE in order to capture them,
        or pass capture_output=True to capture both.
    
        If check is True and the exit code was non-zero, it raises a
        CalledProcessError. The CalledProcessError object will have the return code
        in the returncode attribute, and output & stderr attributes if those streams
        were captured.
    
        If timeout is given, and the process takes too long, a TimeoutExpired
        exception will be raised.
    
        There is an optional argument "input", allowing you to
        pass bytes or a string to the subpr

Check failure on line 1 in test_never_update

See this annotation in the file changed.

@azure-pipelines azure-pipelines / matplotlib.matplotlib

test_never_update

Failed: Subprocess failed to test intended behavior
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/Users/runner/work/1/s/lib/matplotlib/tests/test_backend_tk.py", line 161, in test_never_update
    fig = plt.figure()
  File "/Users/runner/work/1/s/lib/matplotlib/_api/deprecation.py", line 454, in wrapper
    return func(*args, **kwargs)
  File "/Users/runner/work/1/s/lib/matplotlib/pyplot.py", line 840, in figure
    manager = new_figure_manager(
  File "/Users/runner/work/1/s/lib/matplotlib/pyplot.py", line 384, in new_figure_manager
    return _get_backend_mod().new_figure_manager(*args, **kwargs)
  File "/Users/runner/work/1/s/lib/matplotlib/backend_bases.py", line 3574, in new_figure_manager
    return cls.new_figure_manager_given_figure(num, fig)
  File "/Users/runner/work/1/s/lib/matplotlib/backend_bases.py", line 3579, in new_figure_manager_given_figure
    return cls.FigureCanvas.new_manager(figure, num)
  File "/Users/runner/work/1/s/lib/matplotlib/backend_bases.py", line 1742, in new_manager
    return cls.manager_class.create_with_canvas(cls, figure, num)
  File "/Users/runner/work/1/s/lib/matplotlib/backends/_backend_tk.py", line 483, in create_with_canvas
    window = tk.Tk(className="matplotlib")
  File "/Users/runner/hostedtoolcache/Python/3.10.11/x64/lib/python3.10/tkinter/__init__.py", line 2301, in __init__
    self._loadtk()
  File "/Users/runner/hostedtoolcache/Python/3.10.11/x64/lib/python3.10/tkinter/__init__.py", line 2317, in _loadtk
    raise RuntimeError("tk.h version (%s) doesn't match libtk.a version (%s)"
RuntimeError: tk.h version (8.5) doesn't match libtk.a version (8.6)
Raw output
@pytest.mark.skipif(
        not importlib.util.find_spec('tkinter'),
        reason="missing tkinter"
    )
    @pytest.mark.skipif(
        sys.platform == "linux" and not _c_internal_utils.display_is_valid(),
        reason="$DISPLAY and $WAYLAND_DISPLAY are unset"
    )
    @functools.wraps(func)
    def test_func():
        # even if the package exists, may not actually be importable this can
        # be the case on some CI systems.
        pytest.importorskip('tkinter')
        try:
>           proc = subprocess_run_helper(
                func, timeout=_test_timeout, extra_env=dict(
                    MPLBACKEND="TkAgg", MPL_TEST_ESCAPE_HATCH="1"))

lib/matplotlib/tests/test_backend_tk.py:47: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

func = <function test_never_update at 0x117c4cf70>, timeout = 60
extra_env = {'MPLBACKEND': 'TkAgg', 'MPL_TEST_ESCAPE_HATCH': '1'}, args = ()
target = 'test_never_update'

    def subprocess_run_helper(func, *args, timeout, extra_env=None):
        """
        Run a function in a sub-process.
    
        Parameters
        ----------
        func : function
            The function to be run.  It must be in a module that is importable.
        *args : str
            Any additional command line arguments to be passed in
            the first argument to ``subprocess.run``.
        extra_env : dict[str, str]
            Any additional environment variables to be set for the subprocess.
        """
        target = func.__name__
        module = func.__module__
>       proc = subprocess.run(
            [sys.executable,
             "-c",
             f"from {module} import {target}; {target}()",
             *args],
            env={**os.environ, "SOURCE_DATE_EPOCH": "0", **(extra_env or {})},
            timeout=timeout, check=True,
            stdout=subprocess.PIPE,
            stderr=subprocess.PIPE,
            universal_newlines=True)

lib/matplotlib/testing/__init__.py:69: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

input = None, capture_output = False, timeout = 60, check = True
popenargs = (['/Users/runner/hostedtoolcache/Python/3.10.11/x64/bin/python', '-c', 'from matplotlib.tests.test_backend_tk import test_never_update; test_never_update()'],)
kwargs = {'env': {'AGENT_ACCEPTTEEEULA': 'True', 'AGENT_BUILDDIRECTORY': '/Users/runner/work/1', 'AGENT_CLOUDID': 'cd56b78d-2d0...'AGENT_DISABLELOGPLUGIN_TESTFILEPUBLISHERPLUGIN': 'true', ...}, 'stderr': -1, 'stdout': -1, 'universal_newlines': True}
process = <Popen: returncode: 1 args: ['/Users/runner/hostedtoolcache/Python/3.10.11/x...>
stdout = ''
stderr = 'Traceback (most recent call last):\n  File "<string>", line 1, in <module>\n  File "/Users/runner/work/1/s/lib/matplo...ion (%s) doesn\'t match libtk.a version (%s)"\nRuntimeError: tk.h version (8.5) doesn\'t match libtk.a version (8.6)\n'
retcode = 1

    def run(*popenargs,
            input=None, capture_output=False, timeout=None, check=False, **kwargs):
        """Run command with arguments and return a CompletedProcess instance.
    
        The returned instance will have attributes args, returncode, stdout and
        stderr. By default, stdout and stderr are not captured, and those attributes
        will be None. Pass stdout=PIPE and/or stderr=PIPE in order to capture them,
        or pass capture_output=True to capture both.
    
        If check is True and the exit code was non-zero, it raises a
        CalledProcessError. The CalledProcessError object will have the return code
        in the returncode attribute, and output & stderr attributes if those streams
        were captured.
    
        If timeout is given, and the process takes too long, a TimeoutExpired
        exception will be raised.
    
        There is an optional argument "input", allowing you to
        pass bytes or a string to the subprocess's stdin.  If you use this argument
        you may not also use the Popen cons