fd5422f9f9025bf7eb4f6a66a0822241767bd736,pandas/tests/indexes/test_numpy_compat.py,,test_numpy_ufuncs_other,#Any#Any#Any#,77

Before Change



    elif isinstance(index, PeriodIndex):
        // raise TypeError or ValueError (PeriodIndex)
        with pytest.raises(Exception):
            func(index)

    elif isinstance(index, (Float64Index, Int64Index, UInt64Index)):

After Change


        if len(index) == 0:
            pass
        else:
            with tm.external_error_raised(TypeError):
                func(index)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: pandas-dev/pandas
Commit Name: fd5422f9f9025bf7eb4f6a66a0822241767bd736
Time: 2020-12-31
Author: moink@users.noreply.github.com
File Name: pandas/tests/indexes/test_numpy_compat.py
Class Name:
Method Name: test_numpy_ufuncs_other


Project Name: pandas-dev/pandas
Commit Name: d481c13b807bade91d35b4ab456e2fd48058c16e
Time: 2020-12-24
Author: moink@users.noreply.github.com
File Name: pandas/tests/plotting/frame/test_frame.py
Class Name: TestDataFramePlots
Method Name: test_errorbar_plot


Project Name: pandas-dev/pandas
Commit Name: fd5422f9f9025bf7eb4f6a66a0822241767bd736
Time: 2020-12-31
Author: moink@users.noreply.github.com
File Name: pandas/tests/indexes/test_numpy_compat.py
Class Name:
Method Name: test_numpy_ufuncs_basic