(data)
| 74 | ], |
| 75 | ) |
| 76 | def test_as_compatible_data_writeable(data): |
| 77 | # In pandas 3 the mode.copy_on_write option defaults to True, so the option |
| 78 | # setting logic can be removed once our minimum version of pandas is |
| 79 | # greater than or equal to 3. |
| 80 | if not has_pandas_3: |
| 81 | pd.set_option("mode.copy_on_write", True) |
| 82 | # GH8843, ensure writeable arrays for data_vars even with |
| 83 | # pandas copy-on-write mode |
| 84 | assert as_compatible_data(data).flags.writeable |
| 85 | if not has_pandas_3: |
| 86 | pd.reset_option("mode.copy_on_write") |
| 87 | |
| 88 | |
| 89 | class VariableSubclassobjects(NamedArraySubclassobjects, ABC): |
nothing calls this directly
no test coverage detected
searching dependent graphs…