Project

General

Profile

Segnalazione #794

Segnalazione #788: Fare pacchetto .deb

Sistemare la compatibilità tra asyncio di jessie e asyncio contemporanea

Added by Elena Grandi about 5 years ago. Updated about 5 years ago.

Status:
Chiuso
Priority:
Normale
Assignee:
Target version:
-
Start date:
04/09/2019
Due date:
% Done:

0%

Estimated time:
Resolution:

Description

Con la versione di python/asyncio di jessie alcuni test falliscono perché determinati task non vengono eseguiti.

Per riprodurre facilmente si può usare nose2-3 tests.test_source_arpwatch.TestArpwatchDataSource sul branch oldasync; in tests/test_source_arpwatch.py:47 c'è uno

        yield from asyncio.gather(
            compat.create_task(self.ds.run()),
            compat.create_task(test()),
        )

ma né self.ds.run()test() vengono eseguite e il test fallisce con timeout.

In buster ovviamente il test passa senza problemi.

Associated revisions

Revision 4dd593fb (diff)
Added by Elena Grandi about 5 years ago

Use gen_test and AsyncTestCase from common also for inotifywait. refs: #794

History

#1

Updated by Enrico Zini about 5 years ago

Sto dando un'occhiata. Sospetto che a gen_test su jessie non piacciano le asyncio.coroutine. Continuo a provare.

#2

Updated by Enrico Zini about 5 years ago

Pushato versioni alternative di AsyncTestCase e gen_test che funzionano con asyncio.coroutine. I test del webserver però devono continuare a usare le versioni di tornado.

Ora ci sono altri problemi col test, esploro.

#3

Updated by Enrico Zini about 5 years ago

  • Assignee changed from Enrico Zini to Elena Grandi

Mancava inotify-tools. Installato, ora il test passa.

#4

Updated by Elena Grandi about 5 years ago

  • Status changed from Nuovo to Chiuso
  • Assignee changed from Elena Grandi to Enrico Zini

Visto, fatta sistemazione simile in test_inotifywait.

Chiudo il ticket (il codice è già in oldasync e finirà in master assieme al resto)

Also available in: Atom PDF