Opened 5 years ago

Last modified 5 years ago

#30810 closed Bug

WatchmanReloaderTests fail with AttributeError: type object 'WatchmanReloader' has no attribute 'client_timeout' — at Initial Version

Reported by: Poli García Owned by: nobody
Component: Utilities Version: 2.2
Severity: Normal Keywords: utilities, autoreloader, watchman
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Running Django's test suite fails with:

======================================================================
ERROR: test_setting_timeout_from_environment_variable (utils_tests.test_autoreload.WatchmanReloaderTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/local/Cellar/python/3.7.4/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/usr/local/Cellar/python/3.7.4/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 628, in run
    testMethod()
  File "/usr/local/Cellar/python/3.7.4/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/mock.py", line 1626, in _inner
    return f(*args, **kw)
  File "/Users/poli/work/django/django/tests/utils_tests/test_autoreload.py", line 654, in test_setting_timeout_from_environment_variable
    self.assertEqual(self.RELOADER_CLS.client_timeout, 10)
AttributeError: type object 'WatchmanReloader' has no attribute 'client_timeout'

My environment:

  • Mac OSX 10.14.16
  • Python 3.7.4
  • watchman 4.9.0

The WatchmanReloaderTests are marked with skip_unless_watchman_available, so you'll need watchman to be able to reproduce this.

Change History (0)

Note: See TracTickets for help on using tickets.
Back to Top