mirror of https://github.com/django/django.git
[3.0.x] Fixed #30810 -- Fixed WatchmanReloaderTests.test_setting_timeout_from_environment_variable test.
client_timeout is an instance attribute.
Backport of 2fd610eb30
from master
This commit is contained in:
parent
1adf85d168
commit
49dcb5d3ba
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue