28a0f666217f1a4590f74cad2ee42d263af843d5,pandas/tests/indexes/timedeltas/test_indexing.py,TestWhere,test_where_invalid_dtypes,#TestWhere#,148

Before Change


        with pytest.raises(TypeError, match="Where requires matching dtype"):
            tdi.where(notna(i2), i2.asi8)

        with pytest.raises(TypeError, match="Where requires matching dtype"):
            tdi.where(notna(i2), i2 + pd.Timestamp.now())

        with pytest.raises(TypeError, match="Where requires matching dtype"):

After Change



        i2 = Index([pd.NaT, pd.NaT] + tdi[2:].tolist())

        msg = "value should be a "Timedelta", "NaT", or array of those"
        with pytest.raises(TypeError, match=msg):
            tdi.where(notna(i2), i2.asi8)

        with pytest.raises(TypeError, match=msg):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: pandas-dev/pandas
Commit Name: 28a0f666217f1a4590f74cad2ee42d263af843d5
Time: 2020-11-02
Author: jbrockmendel@gmail.com
File Name: pandas/tests/indexes/timedeltas/test_indexing.py
Class Name: TestWhere
Method Name: test_where_invalid_dtypes


Project Name: pandas-dev/pandas
Commit Name: 28a0f666217f1a4590f74cad2ee42d263af843d5
Time: 2020-11-02
Author: jbrockmendel@gmail.com
File Name: pandas/tests/indexes/datetimes/test_indexing.py
Class Name: TestWhere
Method Name: test_where_invalid_dtypes


Project Name: pandas-dev/pandas
Commit Name: 28a0f666217f1a4590f74cad2ee42d263af843d5
Time: 2020-11-02
Author: jbrockmendel@gmail.com
File Name: pandas/tests/indexes/period/test_indexing.py
Class Name: TestWhere
Method Name: test_where_invalid_dtypes