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 825669e
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions cmasher/tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,8 @@ def _MPL38_colormap_eq(cmap, other) -> bool:

# Obtain list of all colormaps defined in CMasher
# 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__"]
cm_names = [_ for _ in sorted(next(os.walk(cmap_dir))[1]) if _ not in _IGNORED]

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

0 comments on commit 825669e

Please sign in to comment.