[PYTHON] AttributeError: I was addicted to'module' object has no attribute'MyTestCase'

When I renamed the test file to test.py, I was addicted to the following error.

AttributeError: 'module' object has no attribute 'MyTestCase'

There was no problem if the file name was other than test.py.

Hmm, it was okay before the version upgrade of Pycharm, but I don't feel that Pycharm is involved. I wonder if it is related to the / opt directory of Pycharm's Docker integration.

Recommended Posts

AttributeError: I was addicted to'module' object has no attribute'MyTestCase'
[Introduction to json] No, I was addicted to it. .. .. ♬
AttributeError:'NoneType' object has no attribute'loader'
With xmpppy'_ssl._SSLSocket' object has no attribute'issuer'
[Python] Attribute Error:'list' object has no attribute'replace'
When'DataFrame' object has no attribute'ix' appears in pandas
Django "Query Set, Object has no attribute'foo'" solution
AttributeError: I was addicted to'module' object has no attribute'MyTestCase'
AttributeError:'NoneType' object has no attribute'loader'
I was addicted to multiprocessing + psycopg2
With xmpppy'_ssl._SSLSocket' object has no attribute'issuer'
[Python] Attribute Error:'list' object has no attribute'replace'
I was addicted to pip install mysqlclient
What I was addicted to Python autorun
When'DataFrame' object has no attribute'ix' appears in pandas
AttributeError: module'urllib' has no attribute'request' error in urllib.request
AttributeError: module ‘torch.utils’ has no attribute ‘data’ solution
Django "Query Set, Object has no attribute'foo'" solution