diff --git a/lib/matplotlib/tests/test_pyplot.py b/lib/matplotlib/tests/test_pyplot.py index 6f9ddd5ccf21..d0d28381a5c6 100644 --- a/lib/matplotlib/tests/test_pyplot.py +++ b/lib/matplotlib/tests/test_pyplot.py @@ -1,6 +1,5 @@ import difflib import numpy as np -import os import subprocess import sys from pathlib import Path @@ -371,23 +370,14 @@ def test_set_current_axes_on_subfigure(): def test_pylab_integration(): - pytest.importorskip("IPython") - subprocess.run( - [ - sys.executable, - "-m", - "IPython", - "--pylab", - "-c", - ";".join(( - "import matplotlib.pyplot as plt", - "assert plt._REPL_DISPLAYHOOK == plt._ReplDisplayHook.IPYTHON", - )), - ], - env={**os.environ, "SOURCE_DATE_EPOCH": "0"}, + IPython = pytest.importorskip("IPython") + mpl.testing.subprocess_run_helper( + IPython.start_ipython, + "--pylab", + "-c", + ";".join(( + "import matplotlib.pyplot as plt", + "assert plt._REPL_DISPLAYHOOK == plt._ReplDisplayHook.IPYTHON", + )), timeout=60, - check=True, - stdout=subprocess.PIPE, - stderr=subprocess.PIPE, - universal_newlines=True, ) pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy