Commit 962d643
committed
fix(tests): handle both TypeError and ValueError in test_invalid_match_type_combinations
Modified the test to handle both ValueError (from list length mismatch) and TypeError (from invalid pattern type) exceptions that may occur during execution. This addresses test failures that happen in CI environments with older tmux versions.1 parent 03711ad commit 962d643
File tree
2 files changed
+35
-2
lines changed- src/libtmux/_internal
- tests/_internal
2 files changed
+35
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1266 | 1266 | | |
1267 | 1267 | | |
1268 | 1268 | | |
| 1269 | + | |
| 1270 | + | |
| 1271 | + | |
| 1272 | + | |
| 1273 | + | |
| 1274 | + | |
| 1275 | + | |
| 1276 | + | |
| 1277 | + | |
| 1278 | + | |
1269 | 1279 | | |
1270 | 1280 | | |
1271 | 1281 | | |
1272 | 1282 | | |
| 1283 | + | |
| 1284 | + | |
| 1285 | + | |
| 1286 | + | |
| 1287 | + | |
| 1288 | + | |
1273 | 1289 | | |
1274 | 1290 | | |
1275 | 1291 | | |
1276 | 1292 | | |
1277 | 1293 | | |
1278 | 1294 | | |
| 1295 | + | |
| 1296 | + | |
| 1297 | + | |
| 1298 | + | |
| 1299 | + | |
1279 | 1300 | | |
1280 | 1301 | | |
1281 | 1302 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2077 | 2077 | | |
2078 | 2078 | | |
2079 | 2079 | | |
2080 | | - | |
| 2080 | + | |
2081 | 2081 | | |
2082 | 2082 | | |
2083 | 2083 | | |
2084 | 2084 | | |
2085 | 2085 | | |
| 2086 | + | |
| 2087 | + | |
| 2088 | + | |
| 2089 | + | |
| 2090 | + | |
2086 | 2091 | | |
2087 | 2092 | | |
2088 | 2093 | | |
2089 | 2094 | | |
2090 | 2095 | | |
2091 | 2096 | | |
2092 | | - | |
| 2097 | + | |
| 2098 | + | |
| 2099 | + | |
| 2100 | + | |
| 2101 | + | |
| 2102 | + | |
| 2103 | + | |
| 2104 | + | |
0 commit comments