Tst/restore old tests #26131
Merged
Tst/restore old tests #26131
Azure Pipelines / matplotlib.matplotlib
succeeded
Mar 21, 2024 in 25m 53s
Build #20240321.10 had test failures
Details
- Failed: 1 (0.00%)
- Passed: 85,271 (88.22%)
- Other: 11,387 (11.78%)
- Total: 96,659
Annotations
Check failure on line 1 in test_determinism_check[h-pdf-False]
azure-pipelines / matplotlib.matplotlib
test_determinism_check[h-pdf-False]
subprocess.TimeoutExpired: Command '['C:\\hostedtoolcache\\windows\\Python\\3.9.13\\x64\\python.exe', '-R', '-c', "from matplotlib.tests.test_determinism import _save_figure;_save_figure('h', 'pdf', False)"]' timed out after 60 seconds
Raw output
objects = 'h', fmt = 'pdf', usetex = False
@pytest.mark.parametrize(
"objects, fmt, usetex", [
("", "pdf", False),
("m", "pdf", False),
("h", "pdf", False),
("i", "pdf", False),
("mhi", "pdf", False),
("mhi", "ps", False),
pytest.param(
"mhi", "ps", True, marks=[needs_usetex, needs_ghostscript]),
("mhi", "svg", False),
pytest.param("mhi", "svg", True, marks=needs_usetex),
]
)
def test_determinism_check(objects, fmt, usetex):
"""
Output three times the same graphs and checks that the outputs are exactly
the same.
Parameters
----------
objects : str
Objects to be included in the test document: 'm' for markers, 'h' for
hatch patterns, 'i' for images.
fmt : {"pdf", "ps", "svg"}
Output format.
"""
> plots = [
subprocess_run_for_testing(
[sys.executable, "-R", "-c",
f"from matplotlib.tests.test_determinism import _save_figure;"
f"_save_figure({objects!r}, {fmt!r}, {usetex})"],
env={**os.environ, "SOURCE_DATE_EPOCH": "946684800",
"MPLBACKEND": "Agg"},
text=False, capture_output=True, check=True).stdout
for _ in range(3)
]
lib\matplotlib\tests\test_determinism.py:91:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
lib\matplotlib\tests\test_determinism.py:92: in <listcomp>
subprocess_run_for_testing(
lib\matplotlib\testing\__init__.py:94: in subprocess_run_for_testing
proc = subprocess.run(
C:\hostedtoolcache\windows\Python\3.9.13\x64\lib\subprocess.py:507: in run
stdout, stderr = process.communicate(input, timeout=timeout)
C:\hostedtoolcache\windows\Python\3.9.13\x64\lib\subprocess.py:1134: in communicate
stdout, stderr = self._communicate(input, endtime, timeout)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <Popen: returncode: 1 args: ['C:\\hostedtoolcache\\windows\\Python\\3.9.13\\...>
input = None, endtime = 1246.5, orig_timeout = 60
def _communicate(self, input, endtime, orig_timeout):
# Start reader threads feeding into a list hanging off of this
# object, unless they've already been started.
if self.stdout and not hasattr(self, "_stdout_buff"):
self._stdout_buff = []
self.stdout_thread = \
threading.Thread(target=self._readerthread,
args=(self.stdout, self._stdout_buff))
self.stdout_thread.daemon = True
self.stdout_thread.start()
if self.stderr and not hasattr(self, "_stderr_buff"):
self._stderr_buff = []
self.stderr_thread = \
threading.Thread(target=self._readerthread,
args=(self.stderr, self._stderr_buff))
self.stderr_thread.daemon = True
self.stderr_thread.start()
if self.stdin:
self._stdin_write(input)
# Wait for the reader threads, or time out. If we time out, the
# threads remain reading and the fds left open in case the user
# calls communicate again.
if self.stdout is not None:
self.stdout_thread.join(self._remaining_time(endtime))
if self.stdout_thread.is_alive():
> raise TimeoutExpired(self.args, orig_timeout)
E subprocess.TimeoutExpired: Command '['C:\\hostedtoolcache\\windows\\Python\\3.9.13\\x64\\python.exe', '-R', '-c', "from matplotlib.tests.test_determinism import _save_figure;_save_figure('h', 'pdf', False)"]' timed out after 60 seconds
C:\hostedtoolcache\windows\Python\3.9.13\x64\lib\subprocess.py:1510: TimeoutExpired
Loading