-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Labels
topic-hypothesisStrategies or tests using the hypothesis libraryStrategies or tests using the hypothesis library
Description
Python 3.12 Test Summary
properties/test_index_manipulation.py::DatasetTest::runTest: DeprecationWarning: Deleting a single level of a MultiIndex is deprecated. Previously, this deleted all levels of a MultiIndex. Please also drop the following variables: {'2'} to avoid an error in the future.
Falsifying example:
state = DatasetStateMachine()
state.init_ds(var=Variable(data=array([''], dtype='<U1'), dims=['4'], attrs={}))
state.assert_invariants()
Draw 1: ['4']
> stacking ['4'] as 3
state.stack(create_index=False, data=data(...), newname='3')
state.assert_invariants()
Draw 2: ['3']
> drop_dims: ['3']
state.drop_dims(data=data(...))
state.assert_invariants()
assign_coords: 0
state.assign_coords(var=Variable(data=array([0], dtype=int32), dims=['0'], attrs={}))
state.assert_invariants()
Draw 3: ['0']
> stacking ['0'] as 2
state.stack(create_index=True, data=data(...), newname='2')
state.assert_invariants()
Draw 4: '2'
> renaming 2 to 1
state.rename_vars(data=data(...), newname='1')
state.assert_invariants()
Draw 5: ['2']
> drop_dims: ['2']
state.drop_dims(data=data(...))
state.teardown()
Explanation:
These lines were always and only run by failing examples:
/home/runner/micromamba/envs/xarray-tests/lib/python3.12/site-packages/pandas/core/algorithms.py:130
/home/runner/micromamba/envs/xarray-tests/lib/python3.12/site-packages/pandas/core/algorithms.py:132
/home/runner/micromamba/envs/xarray-tests/lib/python3.12/site-packages/pandas/core/algorithms.py:135
/home/runner/micromamba/envs/xarray-tests/lib/python3.12/site-packages/pandas/core/algorithms.py:200
/home/runner/micromamba/envs/xarray-tests/lib/python3.12/site-packages/pandas/core/algorithms.py:204
(and 95 more with settings.verbosity >= verbose)
You can reproduce this example by temporarily adding @reproduce_failure('6.112.1', b'AXicY2BgZWBgYGRgYQADDhCbGcRiYgCLIwCMzcHAyAiRZQeKgSCIBwAHkwAz') as a decorator on your test case
dcherianTomNicholas
Metadata
Metadata
Assignees
Labels
topic-hypothesisStrategies or tests using the hypothesis libraryStrategies or tests using the hypothesis library