reduce output on travis and dont install python2 on mac build

This commit is contained in:
Lex Berezhny 2019-10-26 15:02:43 -04:00
parent d2315f4fd7
commit 99ce40f736
4 changed files with 6 additions and 2 deletions

View file

@ -94,6 +94,7 @@ jobs:
language: shell language: shell
env: OS=mac env: OS=mac
before_install: before_install:
- brew uninstall mercurial
- brew upgrade python || true - brew upgrade python || true
- pip3 install --user --upgrade pip virtualenv - pip3 install --user --upgrade pip virtualenv
- /Users/travis/Library/Python/3.7/bin/virtualenv --clear $HOME/venv - /Users/travis/Library/Python/3.7/bin/virtualenv --clear $HOME/venv

View file

@ -67,7 +67,7 @@ class DatabaseComponent(Component):
log.info("Loading databases") log.info("Loading databases")
if not os.path.exists(self.revision_filename): if not os.path.exists(self.revision_filename):
log.warning("db_revision file not found. Creating it") log.info("db_revision file not found. Creating it")
self._write_db_revision_file(self.get_current_db_revision()) self._write_db_revision_file(self.get_current_db_revision())
# check the db migration and run any needed migrations # check the db migration and run any needed migrations

View file

@ -165,7 +165,7 @@ class StreamManager:
await asyncio.gather(*add_stream_tasks, loop=self.loop) await asyncio.gather(*add_stream_tasks, loop=self.loop)
log.info("Started stream manager with %i files", len(self.streams)) log.info("Started stream manager with %i files", len(self.streams))
if not self.node: if not self.node:
log.warning("no DHT node given, resuming downloads trusting that we can contact reflector") log.info("no DHT node given, resuming downloads trusting that we can contact reflector")
if to_resume_saving: if to_resume_saving:
self.resume_saving_task = self.loop.create_task(self.resume(to_resume_saving)) self.resume_saving_task = self.loop.create_task(self.resume(to_resume_saving))

View file

@ -61,6 +61,8 @@ class AsyncioTestCase(unittest.TestCase):
# Implementation inspired by discussion: # Implementation inspired by discussion:
# https://bugs.python.org/issue32972 # https://bugs.python.org/issue32972
LOOP_SLOW_CALLBACK_DURATION = 0.2
maxDiff = None maxDiff = None
async def asyncSetUp(self): # pylint: disable=C0103 async def asyncSetUp(self): # pylint: disable=C0103
@ -100,6 +102,7 @@ class AsyncioTestCase(unittest.TestCase):
self.loop = asyncio.new_event_loop() # pylint: disable=W0201 self.loop = asyncio.new_event_loop() # pylint: disable=W0201
asyncio.set_event_loop(self.loop) asyncio.set_event_loop(self.loop)
self.loop.set_debug(True) self.loop.set_debug(True)
self.loop.slow_callback_duration = self.LOOP_SLOW_CALLBACK_DURATION
try: try:
self._outcome = outcome self._outcome = outcome