Skip to content

Commit 0535659

Browse files
authored
Merge pull request #681 from bashtage/hide-cow-changes
MAINT: Obscure cow changes
2 parents afb0369 + 126a076 commit 0535659

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

linearmodels/conftest.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,11 @@
99
cow = bool(os.environ.get("LM_TEST_COPY_ON_WRITE", ""))
1010
if cow:
1111
try:
12-
pd.options.mode.copy_on_write = cow
12+
import warnings
13+
14+
with warnings.catch_warnings():
15+
warnings.simplefilter("ignore")
16+
pd.options.mode.copy_on_write = cow
1317
except AttributeError:
1418
cow = False
1519
if cow:

0 commit comments

Comments
 (0)