From 40b5b00c87703dac93c031028c335c489f4b5233 Mon Sep 17 00:00:00 2001 From: Joris Van den Bossche Date: Fri, 27 Oct 2023 17:54:09 +0200 Subject: [PATCH] [NOT FOR MERGE] Test enabling Copy-on-Write by default --- pandas/core/config_init.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pandas/core/config_init.py b/pandas/core/config_init.py index a8b63f97141c2..050bce873d31a 100644 --- a/pandas/core/config_init.py +++ b/pandas/core/config_init.py @@ -476,9 +476,7 @@ def use_inf_as_na_cb(key) -> None: "copy_on_write", # Get the default from an environment variable, if set, otherwise defaults # to False. This environment variable can be set for testing. - "warn" - if os.environ.get("PANDAS_COPY_ON_WRITE", "0") == "warn" - else os.environ.get("PANDAS_COPY_ON_WRITE", "0") == "1", + True, copy_on_write_doc, validator=is_one_of_factory([True, False, "warn"]), )