pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/matplotlib/matplotlib/commit/876beccb8fa2bb91133aa5214d16b98fd279047f

igin="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/global-7a1ad343bd40328c.css" /> Fail-fast when trying to run tests with too-old pytest. · matplotlib/matplotlib@876becc · GitHub
Skip to content

Commit 876becc

Browse files
committed
Fail-fast when trying to run tests with too-old pytest.
Otherwise the error message can be quite obscure.
1 parent d72f069 commit 876becc

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

lib/matplotlib/tests/__init__.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
import os
1+
from pathlib import Path
22

33

4-
# Check that the test directories exist
5-
if not os.path.exists(os.path.join(
6-
os.path.dirname(__file__), 'baseline_images')):
4+
# Check that the test directories exist.
5+
if not (Path(__file__).parent / 'baseline_images').exists():
76
raise IOError(
87
'The baseline image directory does not exist. '
98
'This is most likely because the test data is not installed. '

pytest.ini

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
[pytest]
2+
minversion = 3.6
3+
24
testpaths = lib
35
python_files = test_*.py
46

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

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