-
Notifications
You must be signed in to change notification settings - Fork 168
Closed
Description
I'm working on removing xfail from some tests so that we can use pytest.raises instead so that we're more specific. The following test
errors with
@pytest.mark.parametrize("mode", ["scipy", "jit"])
@pytest.mark.parametrize("use_xarray", [True, False])
def test_globcurrent_time_extrapolation_error(mode, use_xarray):
fieldset = set_globcurrent_fieldset(use_xarray=use_xarray)
pset = parcels.ParticleSet(
fieldset,
pclass=ptype[mode],
lon=[25],
lat=[-35],
> time=fieldset.U.time[0] - timedelta(days=1).total_seconds(),
)
E AttributeError: 'Field' object has no attribute 'time'
docs/examples/example_globcurrent.py:233: AttributeError
________________________________________ test_globcurrent_time_extrapolation_error[False-jit] _____
This is a broken test
(imo, xfail should be reserved for features that are not yet implemented, or platform incompatability, etc)
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
Done