diff --git a/tests/test_hist_plot.py b/tests/test_hist_plot.py
index 4beebfc4482ca32376a570bfc572f9d98d187481..7728887f43eff49c34073eea9af07710137f6704 100644
--- a/tests/test_hist_plot.py
+++ b/tests/test_hist_plot.py
@@ -112,14 +112,15 @@ def test_hist_plot(
     if bins is None and cumulative is None and density is None:
         # giving arguments the none value throws errors, might need a test overhaul overall
         ax.hist(x)
-    ax.hist(
-        x,
-        bins=bins,
-        color=color,
-        label=label,
-        cumulative=cumulative,
-        density=density,
-    )
+    else:
+        ax.hist(
+            x,
+            bins=bins,
+            color=color,
+            label=label,
+            cumulative=cumulative,
+            density=density,
+        )
 
     if title:
         ax.set_title(title)