Skip to content

Commit 00604e2

Browse files
committed
fixup
1 parent 528c875 commit 00604e2

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

mantidimaging/eyes_tests/live_viewer_window_test.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,29 +2,29 @@
22
# SPDX - License - Identifier: GPL-3.0-or-later
33

44
from __future__ import annotations
5+
from typing import TYPE_CHECKING
56
from unittest import mock
67
import numpy as np
78
import os
8-
import platform
9-
import time
9+
# import platform
10+
# import time
1011
from mantidimaging.core.operations.loader import load_filter_packages
1112
from mantidimaging.gui.windows.live_viewer.model import Image_Data
1213
from mantidimaging.test_helpers.unit_test_helper import FakeFSTestCase
1314
from pathlib import Path
1415
from mantidimaging.eyes_tests.base_eyes import BaseEyesTest
1516

17+
if TYPE_CHECKING:
18+
import time # noqa: F401
19+
1620

1721
class LiveViewerWindowTest(FakeFSTestCase, BaseEyesTest):
1822

1923
def __init__(self, *args, **kwargs):
2024
super().__init__(*args, **kwargs)
2125
self.initial_time = 4000.0
22-
if platform.system() == 'Windows':
23-
os.environ['TZ'] = 'UTC'
24-
time.tzset()
25-
elif platform.system() == 'Linux':
26-
os.environ['TZ'] = 'UTC'
27-
os.system('timedatectl set-timezone UTC')
26+
os.environ['TZ'] = 'UTC'
27+
os.system('timedatectl set-timezone UTC')
2828

2929
@classmethod
3030
def setUpClass(cls) -> None:

0 commit comments

Comments
 (0)