2ddec44e3c5cd07eee22d889dceaa85e58d9eeb6,tests/syft/typecheck/typecheck_test.py,,test_typecheck_generic_dtypes,#,21
Before Change
func(x=["1", "2", "3"], y=[1, 2, 3])
func(x=["2", "2", "3"], y=["unu", "doi", "trei"])
with pytest.raises(AttributeError) as e:
func(x=[1, 2, 3], y=["unu", "doi", "trei"])
assert (
After Change
assert str(e.value) == "type of argument "x"[0] must be str; got int instead"
with pytest.raises(TypeError) as e:
func(x=["1", "2", "3"], y=[1, 2, 2.0])
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 2
Instances Project Name: OpenMined/PySyft
Commit Name: 2ddec44e3c5cd07eee22d889dceaa85e58d9eeb6
Time: 2020-07-01
Author: tudorcebere@gmail.com
File Name: tests/syft/typecheck/typecheck_test.py
Class Name:
Method Name: test_typecheck_generic_dtypes
Project Name: OpenMined/PySyft
Commit Name: 90d7ed260efaf334e46fa1e3867624e6b21b4bd4
Time: 2020-07-01
Author: tudorcebere@gmail.com
File Name: tests/syft/typecheck/test_typecheck.py
Class Name:
Method Name: test_typecheck_generic_dtypes