Skip to content

Commit

Permalink
TST: ignore __pycache__ in test generation
Browse files Browse the repository at this point in the history
  • Loading branch information
neutrinoceros committed Dec 18, 2023
1 parent 32d7ba3 commit c9b9c52
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions cmasher/tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,10 @@ def _MPL38_colormap_eq(cmap, other) -> bool:
# As all colormaps have their own directories, save them instead
cm_names = sorted(next(os.walk(cmap_dir))[1])

# Make sure that the 'PROJECTS' folder is removed
if "PROJECTS" in cm_names:
cm_names.remove("PROJECTS")
_IGNORED = ["PROJECTS", "__pycache__"]
for ignored in _IGNORED:
if ignored in cm_names:
cm_names.remove(ignored)

# Obtain list of all colormaps registered in MPL
mpl_cmaps = plt.colormaps()
Expand Down

0 comments on commit c9b9c52

Please sign in to comment.