030d1ed98bcdb9e0671223aa60d0dea8bc229d53,unittests/test_fields.py,TestFields,test_timer_field,#TestFields#,87

Before Change


        assert isinstance(FieldTester.field, fields.TimerField)
        assert (65, 22, 47) == tester.field
        with pytest.raises(TypeError):
            exec("tester.field = (2,)", globals(), locals())

        with pytest.raises(TypeError):
            exec("tester.field = (2, 2)", globals(), locals())

After Change


        assert isinstance(FieldTester.field, fields.TimerField)
        assert (65, 22, 47) == tester.field
        with pytest.raises(TypeError):
            tester.field = (2,)

        with pytest.raises(TypeError):
            tester.field = (2, 2)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: eth-cscs/reframe
Commit Name: 030d1ed98bcdb9e0671223aa60d0dea8bc229d53
Time: 2020-02-21
Author: manitaras@cscs.ch
File Name: unittests/test_fields.py
Class Name: TestFields
Method Name: test_timer_field


Project Name: GRAAL-Research/pytoune
Commit Name: 9080cd906df476830caa8b85e9b96474d30f5fcb
Time: 2019-05-02
Author: fredy_14@live.fr
File Name: poutyne/framework/callbacks/lr_scheduler.py
Class Name:
Method Name:


Project Name: eth-cscs/reframe
Commit Name: 030d1ed98bcdb9e0671223aa60d0dea8bc229d53
Time: 2020-02-21
Author: manitaras@cscs.ch
File Name: unittests/test_fields.py
Class Name: TestFields
Method Name: test_scoped_dict_field