Commit f28ab8b
committed
test: improve path object split tests (#1039)
* feat: add fsspec as required dependency (#1021)
* fsspec requirements
* simplify fsspec import
* use loop property
* correctly create schemes list
* feat: set fsspec as default source (#1023)
* feat: add fsspec as required dependency (#1021)
* fsspec requirements
* simplify fsspec import
* use loop property
* correctly create schemes list
* remove deprecated handlers from docs
* simplify source selection
* return object source
* pickle executor
* rename test
* test more handlers
* option to check writeable file-like object
* rename test
* explicitly set handler
* fix s3 source
* rename test
* Revert "fix s3 source"
This reverts commit e76fdbb.
* sesparate PR for s3 fix (#1024)
* strip file://
* rename test
* rename tests
* add aiohttp skip
* attempt to parse windows paths
* test ci
* Revert "test ci"
This reverts commit 4c1c8a5.
* rename test
* remove fsspec from test
* remove *_handler options
* update defaults
* do not override default s3
* do not use fsspec for multiprocessing
* rename test
* fix not selecting object source
* missing import
* normalize doc
* remove helper
* never return None as source
* remove unnecessary xrootd source default override since fsspec is default now
* rename test
* add empty class to pass old pickle test
* feat: set `fsspec` (`s3fs`) as default handler for s3 paths (#1032)
* feat: add fsspec as required dependency (#1021)
* fsspec requirements
* simplify fsspec import
* use loop property
* correctly create schemes list
* feat: set fsspec as default source (#1023)
* feat: add fsspec as required dependency (#1021)
* fsspec requirements
* simplify fsspec import
* use loop property
* correctly create schemes list
* remove deprecated handlers from docs
* simplify source selection
* return object source
* pickle executor
* rename test
* test more handlers
* option to check writeable file-like object
* rename test
* explicitly set handler
* fix s3 source
* rename test
* Revert "fix s3 source"
This reverts commit e76fdbb.
* sesparate PR for s3 fix (#1024)
* strip file://
* rename test
* rename tests
* add aiohttp skip
* attempt to parse windows paths
* test ci
* Revert "test ci"
This reverts commit 4c1c8a5.
* rename test
* remove fsspec from test
* remove *_handler options
* update defaults
* do not override default s3
* do not use fsspec for multiprocessing
* rename test
* fix not selecting object source
* missing import
* normalize doc
* remove helper
* never return None as source
* remove unnecessary xrootd source default override since fsspec is default now
* rename test
* add empty class to pass old pickle test
* set version to 5.2.0rc1 (release candidate)
* set s3fs as default for s3
* test different handlers
* correct serialization of fsspec source
* feat: simplify object path split (#1028)
* simplify object path split
* add example from #975
* fix tests
* add more test cases
* test case update
* remove scheme unused regex
* feat: fsspec for all non-object writing - %-encoded urls no longer decoded (#1034)
* writing goes through fsspec
* increase rc version
* type hints and docs
* add helper methods, create
* throw more specific error
* add additional test for `create` failure with scheme other than local
* simplify source selection
* remove windows specific code
* raise exception if invalid combination of handler / input (file-like object and fsspec)
* use softer check for file-like object
* cover problematic case with additional slash (file:///c:/file.root)
* test "file:" scheme (no slash)
* test backslash
* add new test case
* split big test in two
* retry on socket error
* xrootd iterator
* iterate over different files
* iterate over tree
* pytest fixture for test directory
* pytest fixture for test directory
* add annotation to open argument
* remove repeated test1 parent 32efe97 commit f28ab8b
File tree
5 files changed
+129
-43
lines changed- src/uproot
- tests
5 files changed
+129
-43
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
69 | 70 | | |
70 | 71 | | |
71 | 72 | | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | 6 | | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
| 7 | + | |
| 8 | + | |
13 | 9 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
244 | 244 | | |
245 | 245 | | |
246 | 246 | | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
247 | 312 | | |
248 | 313 | | |
249 | 314 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | 17 | | |
25 | 18 | | |
26 | 19 | | |
27 | 20 | | |
28 | 21 | | |
29 | 22 | | |
30 | 23 | | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | 24 | | |
39 | 25 | | |
40 | 26 | | |
| |||
56 | 42 | | |
57 | 43 | | |
58 | 44 | | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | 45 | | |
67 | 46 | | |
68 | 47 | | |
| |||
78 | 57 | | |
79 | 58 | | |
80 | 59 | | |
81 | | - | |
| 60 | + | |
82 | 61 | | |
83 | | - | |
84 | | - | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
| 108 | + | |
108 | 109 | | |
109 | | - | |
| 110 | + | |
110 | 111 | | |
111 | | - | |
112 | | - | |
| 112 | + | |
| 113 | + | |
113 | 114 | | |
114 | 115 | | |
115 | 116 | | |
| |||
155 | 156 | | |
156 | 157 | | |
157 | 158 | | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | 159 | | |
166 | 160 | | |
167 | 161 | | |
| |||
178 | 172 | | |
179 | 173 | | |
180 | 174 | | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
181 | 199 | | |
182 | 200 | | |
183 | 201 | | |
184 | 202 | | |
185 | 203 | | |
186 | 204 | | |
| 205 | + | |
187 | 206 | | |
188 | 207 | | |
189 | 208 | | |
190 | | - | |
| 209 | + | |
191 | 210 | | |
192 | | - | |
| 211 | + | |
0 commit comments