Skip to content

Commit 6c822e6

Browse files
authored
Update fixed_time patch for non-utc windows env
1 parent e89e391 commit 6c822e6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/unit/test_base_command.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import logging
22
import os
3+
import time
34
from optparse import Values
45
from pathlib import Path
56
from typing import Callable, Iterator, List, NoReturn, Optional
@@ -16,7 +17,7 @@
1617

1718
@pytest.fixture
1819
def fixed_time(utc: None) -> Iterator[None]:
19-
with patch("time.time", lambda: 1547704837.040001):
20+
with patch("time.time", lambda: 1547704837.040001 + time.timezone):
2021
yield
2122

2223

0 commit comments

Comments
 (0)