Skip to content

Commit 1f383f6

Browse files
authored
Merge pull request #824 from bashtage/hide-cow-changes
MAINT: Obscure cow changes
2 parents 7f5b318 + d4b2253 commit 1f383f6

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

arch/conftest.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,11 @@
1212
logger = logging.getLogger(__name__)
1313
COW = bool(os.environ.get("ARCH_TEST_COPY_ON_WRITE", ""))
1414
try:
15-
pd.options.mode.copy_on_write = COW
15+
import warnings
16+
17+
with warnings.catch_warnings():
18+
warnings.simplefilter("ignore")
19+
pd.options.mode.copy_on_write = COW
1620
except AttributeError:
1721
pass
1822

0 commit comments

Comments
 (0)