We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 345607a + 876becc commit 7157312Copy full SHA for 7157312
lib/matplotlib/tests/__init__.py
@@ -1,9 +1,8 @@
1
-import os
+from pathlib import Path
2
3
4
-# Check that the test directories exist
5
-if not os.path.exists(os.path.join(
6
- os.path.dirname(__file__), 'baseline_images')):
+# Check that the test directories exist.
+if not (Path(__file__).parent / 'baseline_images').exists():
7
raise IOError(
8
'The baseline image directory does not exist. '
9
'This is most likely because the test data is not installed. '
pytest.ini
@@ -1,4 +1,6 @@
[pytest]
+minversion = 3.6
+
testpaths = lib
python_files = test_*.py
0 commit comments