From 2623ed5ac605ff947149dd553ade3fddeca5b883 Mon Sep 17 00:00:00 2001 From: David Hewitt <1939362+davidhewitt@users.noreply.github.com> Date: Thu, 14 Jul 2022 08:35:24 +0100 Subject: [PATCH] fix formatting in datetime tests --- src/types/datetime.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/types/datetime.rs b/src/types/datetime.rs index 8b893d92a4b..79de3c38771 100644 --- a/src/types/datetime.rs +++ b/src/types/datetime.rs @@ -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)" ); - } }) }