Skip to content

Commit

Permalink
[3.0.x] Fixed #30810 -- Fixed WatchmanReloaderTests.test_setting_time…
Browse files Browse the repository at this point in the history
…out_from_environment_variable test.

client_timeout is an instance attribute.

Backport of 2fd610e from master
  • Loading branch information
poligarcia authored and felixxm committed Sep 27, 2019
1 parent 1adf85d commit 49dcb5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/utils_tests/test_autoreload.py
Original file line number Diff line number Diff line change
Expand Up @@ -651,7 +651,7 @@ class TestException(Exception):

@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")
Expand Down

0 comments on commit 49dcb5d

Please sign in to comment.