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

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

by Kevin Qagish -
Number of replies: 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 

 

In reply to Kevin Qagish

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

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