From 19231670760fa0a1090811a5608eac8942ecc5ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Besson?= Date: Tue, 23 Jan 2024 07:01:17 +0000 Subject: [PATCH] OMERO.web integration tests: expect timestamp without milliseconds --- .../tools/OmeroWeb/test/integration/test_tree_annotations.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/tools/OmeroWeb/test/integration/test_tree_annotations.py b/components/tools/OmeroWeb/test/integration/test_tree_annotations.py index 6fce89687a4..c91f263112d 100644 --- a/components/tools/OmeroWeb/test/integration/test_tree_annotations.py +++ b/components/tools/OmeroWeb/test/integration/test_tree_annotations.py @@ -160,7 +160,7 @@ def annotate_project(ann, project, user): def expected_date(time): - d = datetime.fromtimestamp(time / 1000) + d = datetime.fromtimestamp(time // 1000) # Add time-zone awareness. Use default TIME_ZONE setting tz = pytz.timezone("Europe/London") d = tz.localize(d)