File: xfails-that-break-pytest.patch

package info (click to toggle)
python-xarray 2025.12.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 12,160 kB
  • sloc: python: 118,690; makefile: 269
file content (63 lines) | stat: -rw-r--r-- 2,502 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
--- a/xarray/tests/test_dataarray_typing.yml
+++ b/xarray/tests/test_dataarray_typing.yml
@@ -106,18 +106,6 @@
     main:7: note:     def [P`2, T] pipe(self, func: Callable[[DataArray, **P], T], *args: P.args, **kwargs: P.kwargs) -> T
     main:7: note:     def [T] pipe(self, func: tuple[Callable[..., T], str], *args: Any, **kwargs: Any) -> T
 
-- case: test_mypy_pipe_function_unexpected_keyword
-  main: |
-    from xarray import DataArray
-
-    def f(da: DataArray, arg: int, *, kwonly: int) -> DataArray:
-        return da
-
-    # Call to pipe using wrong keyword: `kw` instead of `kwonly`
-    da = DataArray().pipe(f, 42, kw=99)
-  out: |
-    main:7: error: Unexpected keyword argument "kw" for "pipe" of "DataWithCoords"  [call-arg]
-
 - case: test_mypy_pipe_tuple_return_type_dataarray
   main: |
     from xarray import DataArray
--- a/xarray/tests/test_dataset_typing.yml
+++ b/xarray/tests/test_dataset_typing.yml
@@ -106,18 +106,6 @@
     main:7: note:     def [P`2, T] pipe(self, func: Callable[[Dataset, **P], T], *args: P.args, **kwargs: P.kwargs) -> T
     main:7: note:     def [T] pipe(self, func: tuple[Callable[..., T], str], *args: Any, **kwargs: Any) -> T
 
-- case: test_mypy_pipe_function_unexpected_keyword
-  main: |
-    from xarray import Dataset
-
-    def f(ds: Dataset, arg: int, *, kwonly: int) -> Dataset:
-        return ds
-
-    # Call to pipe using wrong keyword: `kw` instead of `kwonly`
-    ds = Dataset().pipe(f, 42, kw=99)
-  out: |
-    main:7: error: Unexpected keyword argument "kw" for "pipe" of "DataWithCoords"  [call-arg]
-
 - case: test_mypy_pipe_tuple_return_type_dataset
   main: |
     from xarray import Dataset
--- a/xarray/tests/test_datatree_typing.yml
+++ b/xarray/tests/test_datatree_typing.yml
@@ -106,18 +106,6 @@
     main:7: note:     def [P`2, T] pipe(self, func: Callable[[DataTree, **P], T], *args: P.args, **kwargs: P.kwargs) -> T
     main:7: note:     def [T] pipe(self, func: tuple[Callable[..., T], str], *args: Any, **kwargs: Any) -> T
 
-- case: test_mypy_pipe_function_unexpected_keyword
-  main: |
-    from xarray import DataTree
-
-    def f(dt: DataTree, arg: int, *, kwonly: int) -> DataTree:
-        return dt
-
-    # Call to pipe using wrong keyword: `kw` instead of `kwonly`
-    dt = DataTree().pipe(f, 42, kw=99)
-  out: |
-    main:7: error: Unexpected keyword argument "kw" for "pipe" of "DataTree"  [call-arg]
-
 - case: test_mypy_pipe_tuple_return_type_datatree
   main: |
     from xarray import DataTree