Skip to content

Commit

Permalink
Merge pull request #2508 from davidhewitt/fix-fmt
Browse files Browse the repository at this point in the history
fix formatting in datetime tests
  • Loading branch information
davidhewitt authored Jul 14, 2022
2 parents 379f29a + 2623ed5 commit 5a1be18
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/types/datetime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)"
);
}
})
}

Expand Down

0 comments on commit 5a1be18

Please sign in to comment.