Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 7157312

Browse filesBrowse files
authored
Merge pull request #12975 from anntzer/pytest-version
TST: Fail-fast when trying to run tests with too-old pytest.
2 parents 345607a + 876becc commit 7157312
Copy full SHA for 7157312

File tree

Expand file treeCollapse file tree

2 files changed

+5
-4
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+5
-4
lines changed

‎lib/matplotlib/tests/__init__.py

Copy file name to clipboardExpand all lines: lib/matplotlib/tests/__init__.py
+3-4Lines 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

Copy file name to clipboardExpand all lines: pytest.ini
+2Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.