summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorPablo GarcĂ­a <poli@devartis.com>2019-09-26 14:55:25 -0700
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2019-09-27 08:36:48 +0200
commit38af2579881ed476ecd6bbde5b2329fa22d54210 (patch)
tree39e8e2dd2a2e565b759c9ed1b20bd81f8131651c /tests
parent80d78fd651b331a4a478c22d8b0f5c0f52120fa5 (diff)
[2.2.x] Fixed #30810 -- Fixed WatchmanReloaderTests.test_setting_timeout_from_environment_variable test.
client_timeout is an instance attribute. Backport of 2fd610eb301dc01e100befed891e8007fd2e981f from master
Diffstat (limited to 'tests')
-rw-r--r--tests/utils_tests/test_autoreload.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/utils_tests/test_autoreload.py b/tests/utils_tests/test_autoreload.py
index 64c71bfe3f..ec91359328 100644
--- a/tests/utils_tests/test_autoreload.py
+++ b/tests/utils_tests/test_autoreload.py
@@ -666,7 +666,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)
class StatReloaderTests(ReloaderTests, IntegrationTests):