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

13 lines
296 B
Diff
Raw Normal View History

2022-08-26 21:19:02 +02:00
--- 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")