Skip to content

Commit c8054fd

Browse files
committed
remove warning tests for matplotlib backend setting
1 parent 7698fbb commit c8054fd

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

doubleml/did/tests/test_did_aggregation_plot.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import warnings
2-
31
import matplotlib.pyplot as plt
42
import numpy as np
53
import pytest
@@ -180,13 +178,4 @@ def test_joint_ci_bootstrap_warning(mock_framework):
180178
with pytest.warns(UserWarning, match="Joint confidence intervals require bootstrapping"):
181179
_ = aggregation.plot_effects(joint=True)
182180

183-
# Verify that bootstrap was performed
184-
assert aggregation.aggregated_frameworks.boot_t_stat is not None
185-
186-
# No warning should be raised when plotting again
187-
with warnings.catch_warnings(record=True) as recorded_warnings:
188-
warnings.simplefilter("always") # Ensure all warnings are recorded
189-
_ = aggregation.plot_effects(joint=True)
190-
191-
assert len(recorded_warnings) == 0
192181
plt.close("all")

0 commit comments

Comments
 (0)