Project

General

Profile

Tâche #30746

Scénario #30558: Porter le backend/compiler ERA en python3

Dysfonctionnements soulevés par les tests unitaires

Added by Joël Cuissinat 12 months ago. Updated 11 months ago.

Status:
Fermé
Priority:
Normal
Assigned To:
Start date:
09/25/2020
Due date:
% Done:

100%

Remaining (hours):
0.0

Description

https://dev-eole.ac-dijon.fr/jenkins/job/2.8.0/job/test-moduletests-amon-2.8.0-amd64/98/parsed_console/

https://dev-eole.ac-dijon.fr/jenkins/job/2.8.1/job/test-moduletests-amon-2.8.1-amd64/

À noter que la majorité des tests en erreur renvoient sur celle qui suit (../noyau/domparsers.py:389: AttributeError)...

>                   library_store.services.append(new_serv)
E                   AttributeError: 'dict_values' object has no attribute 'append'
../noyau/domparsers.py:389: AttributeError
>       if self.down_directives_list() > 0:
E       TypeError: '>' not supported between instances of 'list' and 'int'

../noyau/fwobjects.py:204: TypeError
>       assert str(matrice.get_flux_list(zones["zoneA"])) ==  FLUX_ZONE_A
E       AssertionError: assert '[Flux : [zA ...zA <===> zC]]' == '[Flux : [zB <...zC <===> zA]]'
E         - [Flux : [zA <===> zB], Flux : [zA <===> zC]]
E         ?           ^        ^            ^        ^
E         + [Flux : [zB <===> zA], Flux : [zC <===> zA]]
E         ?           ^        ^            ^        ^

test_matrix.py:75: AssertionError
>       assert str(matrice.get_flux_list(zones["zoneA"])) == FLUX_ZONE_C_REMOVED
E       AssertionError: assert '[Flux : [zA <===> zB]]' == '[Flux : [zB <===> zA]]'
E         - [Flux : [zA <===> zB]]
E         ?           ^        ^
E         + [Flux : [zB <===> zA]]
E         ?           ^        ^

test_matrix.py:81: AssertionError

Associated revisions

Revision 454f205e (diff)
Added by Emmanuel GARETTE 11 months ago

faire fonctionner les tests en python3 (ref #30746)

Revision 8972557a (diff)
Added by Emmanuel GARETTE 11 months ago

faire fonctionner les tests en python2 et python3 (ref #30746)

Revision ae22c57e (diff)
Added by Emmanuel GARETTE 11 months ago

ajout des paquets python2 pour les tests (ref #30746)

Revision 813218f5 (diff)
Added by Emmanuel GARETTE 11 months ago

ajout des paquets python2 pour les tests (ref #30746)

Revision 3dbfa88e (diff)
Added by Emmanuel GARETTE 11 months ago

Ne pas faire de deprecationwarning pour l'import de pyudev (et uniquement pyudev) (ref #30746)

Revision afb861c9 (diff)
Added by Emmanuel GARETTE 11 months ago

is => == (ref #30746)

Revision f79b4d82 (diff)
Added by Joël Cuissinat 11 months ago

run-module-tests : compatibilité ERA/python2 en 2.8

Ref: #30746

History

#1 Updated by Joël Cuissinat 11 months ago

  • Description updated (diff)

#2 Updated by Emmanuel GARETTE 11 months ago

  • Status changed from Nouveau to Résolu
  • Assigned To set to Emmanuel GARETTE
  • % Done changed from 0 to 100

#3 Updated by Gilles Grandgérard 11 months ago

  • Status changed from Résolu to Fermé
  • Remaining (hours) set to 0.0

Also available in: Atom PDF