Skip to content

Commit e68a9b2

Browse files
committed
Fix test that fails on specific macos
1 parent 5bf9f29 commit e68a9b2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/utest/robot_interface/test_time_conversions.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,10 @@ def _validate_timestamp(self, result):
3434
expected = '19700101 00:00:00.990000'
3535
import platform
3636
# Particular Windows 10 calculates epoch differently ( T ʖ̯ T)
37-
if platform.system() == 'Windows' and platform.version() == '10.0.19044':
37+
if ((platform.system() == 'Windows' and
38+
platform.version() == '10.0.19044') or
39+
(platform.system() == 'Darwin'and
40+
platform.release() == '21.6.0')):
3841
expected = '19700101 02:00:00.990000'
3942

4043
self.assertEqual(timestamp, expected)

0 commit comments

Comments
 (0)