fix formatting in datetime tests
This commit is contained in:
parent
379f29ade2
commit
2623ed5ac6
|
@ -561,14 +561,12 @@ mod tests {
|
|||
"import datetime; assert dt == datetime.datetime.fromtimestamp(100)"
|
||||
);
|
||||
|
||||
{
|
||||
let dt = PyDateTime::from_timestamp(py, 100.0, Some(timezone_utc(py))).unwrap();
|
||||
py_run!(
|
||||
let dt = PyDateTime::from_timestamp(py, 100.0, Some(timezone_utc(py))).unwrap();
|
||||
py_run!(
|
||||
py,
|
||||
dt,
|
||||
"import datetime; assert dt == datetime.datetime.fromtimestamp(100, datetime.timezone.utc)"
|
||||
);
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue