void-packages/srcpkgs/python3-tzlocal/patches/fix-test.patch

13 lines
296 B
Diff

--- a/tests/test_tzlocal.py
+++ b/tests/test_tzlocal.py
@@ -205,6 +205,9 @@
def test_win32_no_dst(mocker):
+ sys.modules["winreg"] = MagicMock()
+ import tzlocal.win32
+
mocker.patch("tzlocal.utils.assert_tz_offset")
valuesmock = mocker.patch("tzlocal.win32.valuestodict")