()
| 778 | |
| 779 | |
| 780 | def test_bool_field_coercion_numpy_bool(): |
| 781 | np = pytest.importorskip("numpy") |
| 782 | fory = Fory(xlang=False, ref=True, strict=False, compatible=False) |
| 783 | |
| 784 | result_true = ser_de(fory, BoolCoercionObject(np.bool_(True))) |
| 785 | assert result_true.b is True |
| 786 | |
| 787 | result_false = ser_de(fory, BoolCoercionObject(np.bool_(False))) |
| 788 | assert result_false.b is False |
| 789 | |
| 790 | |
| 791 | @pytest.mark.parametrize( |
nothing calls this directly
no test coverage detected