Skip to content

Commit 31698b1

Browse files
committed
💚 Fix tests to work on python 3.6
1 parent c78e77f commit 31698b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_logger.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def test_writer_and_reader():
3737
def test_writer_and_reader_with_datetime_value():
3838
writer = LogWriter(threshold=1)
3939
writer.reset()
40-
writer.log({"datetime": datetime.datetime.fromisoformat("2021-11-17 18:23:22.483962")})
40+
writer.log({"datetime": datetime.datetime.strptime("2021-11-17 18:23:22.483962", "%Y-%m-%d %H:%M:%S.%f")})
4141
assert os.path.exists("./log.json")
4242
reader = LogReader()
4343
data = reader.retrieve()

0 commit comments

Comments
 (0)