Commit 54455e2
committed
Add failing test for partial date with leap day
Python uses 1900 as the default year if a partial date is parsed with
datetime.datetime.strptime. This fails for February 29th because 1900
is not a leap year.
This is discussed in #335 and upstream in
python/cpython#116179.1 parent 19b974e commit 54455e2
1 file changed
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
149 | 149 | | |
150 | 150 | | |
151 | 151 | | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
0 commit comments