Commit 0f5b0f8
test: remove pandas version restrictions and fix precision issue (#17005)
This PR removes the pandas version restrictions from tests that were
skipped for Pandas >= 2.0 without a stated reason and enables testing by
addressing a precision issue in the tests.
It also adds a catch for ImportError when tqdm tries to import
matplotlib when matplotlib is not installed.
It also adds two small ignore pragmas to resolve mypy's struggles with
handling optional imports.
This PR partially fixes #16042 (for bigquery).
For completeness, we did an assessment of any remaining test skips and
they all appear to be legitimate skips that are applied when a
dependency is not installed.
1. PyArrow
2. tqdm (Progress Bar)
3. Pandas
4. OpenTelemetry
5. GeoPandas
6. Shapely1 parent 1117443 commit 0f5b0f8
7 files changed
Lines changed: 45 additions & 17 deletions
File tree
- packages/google-cloud-bigquery
- google/cloud/bigquery
- tests
- system
- unit
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
| 73 | + | |
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1053 | 1053 | | |
1054 | 1054 | | |
1055 | 1055 | | |
1056 | | - | |
1057 | 1056 | | |
1058 | 1057 | | |
1059 | 1058 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
551 | 551 | | |
552 | 552 | | |
553 | 553 | | |
554 | | - | |
555 | 554 | | |
556 | 555 | | |
557 | 556 | | |
558 | 557 | | |
559 | 558 | | |
560 | 559 | | |
561 | 560 | | |
562 | | - | |
| 561 | + | |
| 562 | + | |
563 | 563 | | |
564 | 564 | | |
565 | 565 | | |
| |||
Lines changed: 40 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
48 | 60 | | |
49 | 61 | | |
50 | 62 | | |
| |||
523 | 535 | | |
524 | 536 | | |
525 | 537 | | |
526 | | - | |
| 538 | + | |
527 | 539 | | |
528 | 540 | | |
529 | 541 | | |
| |||
543 | 555 | | |
544 | 556 | | |
545 | 557 | | |
546 | | - | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
547 | 561 | | |
548 | 562 | | |
549 | 563 | | |
| |||
577 | 591 | | |
578 | 592 | | |
579 | 593 | | |
580 | | - | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
581 | 597 | | |
582 | 598 | | |
583 | 599 | | |
| |||
599 | 615 | | |
600 | 616 | | |
601 | 617 | | |
602 | | - | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
603 | 621 | | |
604 | 622 | | |
605 | 623 | | |
| |||
624 | 642 | | |
625 | 643 | | |
626 | 644 | | |
627 | | - | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
628 | 648 | | |
629 | 649 | | |
630 | 650 | | |
| |||
691 | 711 | | |
692 | 712 | | |
693 | 713 | | |
694 | | - | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
695 | 717 | | |
696 | 718 | | |
697 | 719 | | |
| |||
1437 | 1459 | | |
1438 | 1460 | | |
1439 | 1461 | | |
1440 | | - | |
| 1462 | + | |
| 1463 | + | |
| 1464 | + | |
1441 | 1465 | | |
1442 | 1466 | | |
1443 | 1467 | | |
| |||
1460 | 1484 | | |
1461 | 1485 | | |
1462 | 1486 | | |
1463 | | - | |
| 1487 | + | |
| 1488 | + | |
| 1489 | + | |
1464 | 1490 | | |
1465 | 1491 | | |
1466 | 1492 | | |
| |||
1484 | 1510 | | |
1485 | 1511 | | |
1486 | 1512 | | |
1487 | | - | |
| 1513 | + | |
| 1514 | + | |
| 1515 | + | |
1488 | 1516 | | |
1489 | 1517 | | |
1490 | 1518 | | |
| |||
1507 | 1535 | | |
1508 | 1536 | | |
1509 | 1537 | | |
1510 | | - | |
| 1538 | + | |
| 1539 | + | |
| 1540 | + | |
1511 | 1541 | | |
1512 | 1542 | | |
1513 | 1543 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4092 | 4092 | | |
4093 | 4093 | | |
4094 | 4094 | | |
4095 | | - | |
4096 | 4095 | | |
4097 | 4096 | | |
4098 | 4097 | | |
| |||
0 commit comments