Please ignore secret bonuses. Secret tests do NOT award bonus. Max hw grade is 30+2 bonus efficiency

Do you need help?

Notice Board

Per partecipare al corso di Fondamenti di programmazione 2023-24 loggatevi e attivatelo nella vostra pagina dei corsi preferiti. A quel punto il corso appare nel menù personale cliccando sul proprio avatar. Per i materiali degli anni precedenti seguite lo stesso metodo.

To join the Programming/Lab 2023-24 course, log-on and select it on the my courses page. It will appear on the personal menu of your avatar. For earlier years use the same method.

Non riesco a far girare i test in Anaconda

G
GianfrancoLeone (410 points)
3 11 17
in Es1 by (410 points)
closed by

Professore,

nonostante abbia seguito le istruzioni, non riesco a far girare i test in Anaconda.

Anzi, nonostante abbia eseguito i comandi 

  • conda install -c conda-forge ddt
  • conda install pytest-timeout
Da Anaconda ricevo il messaggio: ModuleNotFoundError: No module named 'ddt'.
Va bene se domani porto il mio PC al ricevimento professori e verifichiamo dove sbaglio?
Grazie
Gianfranco
468 views
closed with the note: risolto

2 Answers

Best answer
andrea.sterbini (207920 points)
750 1267 2373
by (208k points)

Risolto, in windows il comando python test_01.py non fa output e bisogna usare il comando

  • pytest -v --timeout 1 --durations 0 test_01.py
andrea.sterbini (207920 points)
750 1267 2373
by (208k points)
OK                          .
andrea.sterbini (207920 points)
750 1267 2373
by (208k points)
La didattica domani è annullata
verrai lo stesso?
andrea.sterbini (207920 points)
750 1267 2373
by (208k points)
Oppure possiamo provare con skype?