From 49dcb5d3ba688ea45eb5fea66b6a4c82361e6e54 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pablo=20Garc=C3=ADa?= Date: Thu, 26 Sep 2019 14:55:25 -0700 Subject: [PATCH] [3.0.x] Fixed #30810 -- Fixed WatchmanReloaderTests.test_setting_timeout_from_environment_variable test. client_timeout is an instance attribute. Backport of 2fd610eb301dc01e100befed891e8007fd2e981f from master --- tests/utils_tests/test_autoreload.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/utils_tests/test_autoreload.py b/tests/utils_tests/test_autoreload.py index 2216d003eee..fe89f897c79 100644 --- a/tests/utils_tests/test_autoreload.py +++ b/tests/utils_tests/test_autoreload.py @@ -651,7 +651,7 @@ class WatchmanReloaderTests(ReloaderTests, IntegrationTests): @mock.patch.dict(os.environ, {'DJANGO_WATCHMAN_TIMEOUT': '10'}) def test_setting_timeout_from_environment_variable(self): - self.assertEqual(self.RELOADER_CLS.client_timeout, 10) + self.assertEqual(self.RELOADER_CLS().client_timeout, 10) @skipIf(on_macos_with_hfs(), "These tests do not work with HFS+ as a filesystem")