Esecuzione test

SimoneBd96 (3030 points)
5 11 33
asked Oct 22, 2020 in HW2 obbligatorio by SimoneBd96 (3,030 points)
recategorized Nov 11, 2020 by andrea.sterbini

Buonasera, ho svolto l'hmw ma quando vado a lanciare il test, mi da il seguente errore:

/Desktop/Homework/HW2req/test_01.py', wdir='C:/Users/UTENTE/Desktop/Homework/HW2req')
  File "<fstring>", line 1
    (fromlist=)
             ^
SyntaxError: invalid syntax

vorrei sapere se è successo a qualcuno, e se lo ha risolto

(ho provato anche a cambiare le variabili in test DEBUG).
Grazie in anticipo.

191 views

2 Answers

Best answer
AdSum (16290 points)
9 20 134
answered Oct 22, 2020 by AdSum (16,290 points)
selected Oct 22, 2020 by SimoneBd96

Come già risposto in un'altro post :

Cambia riga 43 in testlib.py

print(f"Importing {name} (globals, locals, {fromlist=}, {level=}) (not allowed)")

a questa

print(f"Importing {name} (globals, locals, {fromlist}, {level}) (not allowed)")
g
giacomo_venturini (6680 points)
2 5 39
answered Oct 22, 2020 by giacomo_venturini (6,680 points)