8000 MNT: Rename example files with 'test' in name · matplotlib/matplotlib@3d864dd · GitHub
[go: up one dir, main page]

Skip to content

Commit 3d864dd

Browse files
MNT: Rename example files with 'test' in name
In PR 23130 it was noticed that certain example files had 'test' in their name and were getting picked up automatically by pytest accidentally. To avoid this, `testpaths = lib` was added to pytest.ini. While this is sufficient to avoid future problems, removing the word 'test' from example file names and replacing it with 'demo', which is commonly used in other matplotlib examples, provides future safeguards. To avoid causing broken links in the example documentation https://matplotlib.org/stable/gallery/index.html add `redirect-from` statements to the old file names as directed in https://matplotlib.org/stable/devel/documenting_mpl.html#moving-documentation. There are additional examples beyond 'examples/scales/log_test.py' but it was decided these examples should be removed or turned into actual tests, and so to avoid the noise of renaming and then removing these are left alone for the scope of PR 23219.
1 parent 37cf8e4 commit 3d864dd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

examples/scales/log_test.py renamed to examples/scales/semilogx_demo.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
Log Axis
44
========
55
6+
.. redirect-from:: /gallery/scales/log_test
7+
68
This is an example of assigning a log-scale for the x-axis using
79
`~.axes.Axes.semilogx`.
810
"""

0 commit comments

Comments
 (0)
0