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
python:
@ -6,14 +5,8 @@ python:
- "3.6"
install: pip install tox-travis coverage
script:
- tox
script: tox
after_success:
- coverage combine tests/
- 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):
return self._controller._listen(on_data, on_error, on_done)
def where(self, condition):
def deferred_where(self, condition):
deferred = Deferred()
def where_test(value):
@ -142,8 +142,8 @@ class Stream:
return deferred
def async_where(self, condition):
return self.where(condition).asFuture(asyncio.get_event_loop())
def where(self, condition):
return self.deferred_where(condition).asFuture(asyncio.get_event_loop())
@property
def first(self):