fixing travis

This commit is contained in:
Lex Berezhny 2018-05-25 11:11:28 -04:00
parent ca6d5937ba
commit 4e4c4b5f96
2 changed files with 4 additions and 11 deletions

View file

@ -1,4 +1,3 @@
sudo: false
language: python language: python
python: python:
@ -6,14 +5,8 @@ python:
- "3.6" - "3.6"
install: pip install tox-travis coverage install: pip install tox-travis coverage
script: tox
script:
- tox
after_success: after_success:
- coverage combine tests/ - coverage combine tests/
- bash <(curl -s https://codecov.io/bash) - bash <(curl -s https://codecov.io/bash)
branches:
only:
- master

View file

@ -128,7 +128,7 @@ class Stream:
def listen(self, on_data, on_error=None, on_done=None): def listen(self, on_data, on_error=None, on_done=None):
return self._controller._listen(on_data, on_error, on_done) return self._controller._listen(on_data, on_error, on_done)
def where(self, condition): def deferred_where(self, condition):
deferred = Deferred() deferred = Deferred()
def where_test(value): def where_test(value):
@ -142,8 +142,8 @@ class Stream:
return deferred return deferred
def async_where(self, condition): def where(self, condition):
return self.where(condition).asFuture(asyncio.get_event_loop()) return self.deferred_where(condition).asFuture(asyncio.get_event_loop())
@property @property
def first(self): def first(self):