Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork32k
Commit38dc3f2
authored
* Remove last use of `utcfromtimestamp`This was a weirdly valid use of `utcfromtimestamp` in the sense that the "timestamps" in TZif files are not epoch times, but actually something more properly thought of as "number of seconds since 1970 in the local time zone", so even though we didn't want UTC time, `utcfromtimestamp` was still a good way to get the thing we wanted. Since we're deprecating `utcfromtimestamp`, it's just as valid to use `timedelta` arithmetic here.We may be able to avoid the question entirely by switching these tests over to using `ZoneInfo` in the future.* Fix a few missing DeprecationWarnings in testsIn one test, we simply turn off DeprecationWarning rather than asserting about it, because whether the error condition happens before or after the warning seems to differ between the Python and C versions.
1 parent0fc58c6 commit38dc3f2
1 file changed
+20
-15
lines changedLines changed: 20 additions & 15 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2 | 2 |
| |
3 | 3 |
| |
4 | 4 |
| |
5 |
| - | |
6 |
| - | |
7 | 5 |
| |
8 | 6 |
| |
9 | 7 |
| |
10 |
| - | |
| 8 | + | |
| 9 | + | |
11 | 10 |
| |
12 | 11 |
| |
13 | 12 |
| |
14 | 13 |
| |
15 | 14 |
| |
| 15 | + | |
16 | 16 |
| |
| 17 | + | |
17 | 18 |
| |
18 | 19 |
| |
19 | 20 |
| |
| |||
51 | 52 |
| |
52 | 53 |
| |
53 | 54 |
| |
| 55 | + | |
| 56 | + | |
54 | 57 |
| |
55 | 58 |
| |
56 | 59 |
| |
57 | 60 |
| |
58 |
| - | |
59 | 61 |
| |
60 | 62 |
| |
61 | 63 |
| |
| |||
2626 | 2628 |
| |
2627 | 2629 |
| |
2628 | 2630 |
| |
2629 |
| - | |
2630 |
| - | |
2631 |
| - | |
| 2631 | + | |
| 2632 | + | |
| 2633 | + | |
| 2634 | + | |
2632 | 2635 |
| |
2633 | 2636 |
| |
2634 | 2637 |
| |
| |||
2645 | 2648 |
| |
2646 | 2649 |
| |
2647 | 2650 |
| |
2648 |
| - | |
2649 |
| - | |
| 2651 | + | |
| 2652 | + | |
| 2653 | + | |
2650 | 2654 |
| |
2651 | 2655 |
| |
2652 | 2656 |
| |
| |||
3005 | 3009 |
| |
3006 | 3010 |
| |
3007 | 3011 |
| |
3008 |
| - | |
| 3012 | + | |
3009 | 3013 |
| |
3010 | 3014 |
| |
3011 | 3015 |
| |
| |||
4733 | 4737 |
| |
4734 | 4738 |
| |
4735 | 4739 |
| |
4736 |
| - | |
4737 |
| - | |
| 4740 | + | |
| 4741 | + | |
| 4742 | + | |
| 4743 | + | |
4738 | 4744 |
| |
4739 | 4745 |
| |
4740 | 4746 |
| |
| |||
6102 | 6108 |
| |
6103 | 6109 |
| |
6104 | 6110 |
| |
6105 |
| - | |
6106 |
| - | |
| 6111 | + | |
6107 | 6112 |
| |
6108 | 6113 |
| |
6109 | 6114 |
| |
6110 | 6115 |
| |
6111 | 6116 |
| |
6112 | 6117 |
| |
6113 |
| - | |
| 6118 | + | |
6114 | 6119 |
| |
6115 | 6120 |
| |
6116 | 6121 |
| |
|
0 commit comments
Comments
(0)