File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change 2
2
# SPDX - License - Identifier: GPL-3.0-or-later
3
3
4
4
from __future__ import annotations
5
+ from typing import TYPE_CHECKING
5
6
from unittest import mock
6
7
import numpy as np
7
8
import os
8
- import platform
9
- import time
9
+ # import platform
10
+ # import time
10
11
from mantidimaging .core .operations .loader import load_filter_packages
11
12
from mantidimaging .gui .windows .live_viewer .model import Image_Data
12
13
from mantidimaging .test_helpers .unit_test_helper import FakeFSTestCase
13
14
from pathlib import Path
14
15
from mantidimaging .eyes_tests .base_eyes import BaseEyesTest
15
16
17
+ if TYPE_CHECKING :
18
+ import time # noqa: F401
19
+
16
20
17
21
class LiveViewerWindowTest (FakeFSTestCase , BaseEyesTest ):
18
22
19
23
def __init__ (self , * args , ** kwargs ):
20
24
super ().__init__ (* args , ** kwargs )
21
25
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' )
28
28
29
29
@classmethod
30
30
def setUpClass (cls ) -> None :
You can’t perform that action at this time.
0 commit comments