AttributeError: module 'main' has no attribute 'TestQueue'

AttributeError: module 'main' has no attribute 'TestQueue'

von Kevin Qagish -
Anzahl Antworten: 1

Hello, 

I have a quick question ist the last line "del TestQueue" in the unittest really neccesary ?

Because without it i can test my code and it works just fine.

With it on the other side the following error occurs : AttributeError: module 'main' has no attribute 'TestQueue'

 

Best regards 

 

Als Antwort auf Kevin Qagish

Re: AttributeError: module 'main' has no attribute 'TestQueue'

von Benedikt Ebing -
Hello Kevin,
no, the line is not necessarily required to execute the tests.
Best,
Benedikt