From e6d61cf163901e0adf2f6617ef069038e31d4755 Mon Sep 17 00:00:00 2001 From: James Hutchison <122519877+JamesHutchison@users.noreply.github.com> Date: Mon, 23 Sep 2024 11:15:39 -0700 Subject: [PATCH] passing polling_interval as keyword arg --- pytest_hot_reloading/plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pytest_hot_reloading/plugin.py b/pytest_hot_reloading/plugin.py index ff85cbe..3d66d0d 100644 --- a/pytest_hot_reloading/plugin.py +++ b/pytest_hot_reloading/plugin.py @@ -324,7 +324,7 @@ def lagged_listdir(*args, **kwargs): time.sleep(0.02 * poll_throttle) # give CPU a break! return listdir(*args, **kwargs) - super().__init__(stat, lagged_listdir, polling_interval * poll_throttle) + super().__init__(stat, lagged_listdir, polling_interval=polling_interval * poll_throttle) jurigged.live.PollingObserverVFS = NewPollingObserverVFS