Skip to content

Commit 0a0d4b6

Browse files
authored
Fix test logic for datetime (#2900)
* Fix test logic for datetime formatting * Run black
1 parent 2f2cf94 commit 0a0d4b6

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

test/test_literal/test_datetime.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,11 @@ def test_timezone_z(self):
4343
)
4444

4545
assert isinstance(l.toPython(), datetime)
46-
assert datetime_isoformat(
47-
l.toPython() == DATE_EXT_COMPLETE + "T" + "%H:%M:%S.%f" + TZ_EXT, dt
46+
assert (
47+
datetime_isoformat(
48+
l.toPython(), DATE_EXT_COMPLETE + "T" + "%H:%M:%S.%f" + TZ_EXT
49+
)
50+
== dt
4851
)
4952
assert l.toPython().isoformat() == "2008-12-01T18:02:00.522630+00:00"
5053

0 commit comments

Comments
 (0)