Update fixed_time patch for non-utc windows env
import logging
import os
+import time
from optparse import Values
from pathlib import Path
from typing import Callable, Iterator, List, NoReturn, Optional
@@ -16,7 +17,7 @@ from pip._internal.utils.temp_dir import TempDirectory
@pytest.fixture
def fixed_time(utc: None) -> Iterator[None]:
- with patch("time.time", lambda: 1547704837.040001):
+ with patch("time.time", lambda: 1547704837.040001 + time.timezone):
yield
