After updating to the new version 2016.2, I get
RuntimeWarning: Parent module 'tests' not found while handling absolute import import unittest RuntimeWarning: Parent module 'tests' not found while handling absolute import import datetime as dt
'tests' is a package inside my main application package, and I get these warnings when I try to run unit tests inside this folder. This issue only occurred after upgrading to 2016.2. In addition to warnings, the remaining code works fine.
Edit: this is a known issue - https://youtrack.jetbrains.com/issue/PY-20171 . They suggest replacing utrunner.py in the PyCharm installation folder.
python import pycharm
Allen Lin Jul 25 '16 at 14:08 2016-07-25 14:08
source share