Pycharm import RuntimeWarning after updating to 2016.2


错误信息:

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

问题修复办法:
~\JetBrains\PyCharm Community Edition 2016.2\helpers\pycharm
用老版本的utrunner.py替换新版本的utrunner.py

下载地址:
https://youtrack.jetbrains.com/_persistent/utrunner.py?file=74-332199&c=true

你可能感兴趣的:(Pycharm import RuntimeWarning after updating to 2016.2)