Skip to content

Commit c4270d5

Browse files
committed
also change the replace test
1 parent b227e43 commit c4270d5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pint_xarray/tests/test_index.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@ def test_init_error():
4242

4343

4444
def test_replace():
45-
old_index = PandasIndex([1, 2, 3], dim="y")
45+
old_index = PandasIndex([1, 2, 3], dim="x")
4646
new_index = PandasIndex([0.1, 0.2, 0.3], dim="x")
4747

48-
old = PintIndex(index=old_index, units=ureg.Unit("m"))
48+
old = PintIndex(index=old_index, units={"x": ureg.Unit("m")})
4949
new = old._replace(new_index)
5050

5151
assert new.index.equals(new_index)

0 commit comments

Comments
 (0)