fix formatting in datetime tests

This commit is contained in:
David Hewitt 2022-07-14 08:35:24 +01:00
parent 379f29ade2
commit 2623ed5ac6

View file

@ -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)"
);
}
})
}