mirror of
https://github.com/powerline/powerline.git
synced 2025-07-27 07:44:36 +02:00
Fix tests: handle must not be saved to .watches until it was started
Otherwise .is_watching() method does not return valid results.
This commit is contained in:
parent
eb9c14096b
commit
ff10b9e862
@ -87,8 +87,8 @@ class UvWatcher(object):
|
|||||||
|
|
||||||
def _start_watch_1_x(self, path):
|
def _start_watch_1_x(self, path):
|
||||||
handle = pyuv.fs.FSEvent(self.loop)
|
handle = pyuv.fs.FSEvent(self.loop)
|
||||||
self.watches[path] = handle
|
|
||||||
handle.start(path, 0, partial(self._record_event, path))
|
handle.start(path, 0, partial(self._record_event, path))
|
||||||
|
self.watches[path] = handle
|
||||||
|
|
||||||
def _start_watch_0_x(self, path):
|
def _start_watch_0_x(self, path):
|
||||||
self.watches[path] = pyuv.fs.FSEvent(
|
self.watches[path] = pyuv.fs.FSEvent(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user