PY-20983 (partial fix): do not break if python target is module.

This fix is critical anyway, because running module as python is common
This commit is contained in:
Ilya.Kazakevich
2017-04-15 22:27:56 +03:00
parent 4fb7122323
commit 6b8e8e7a65
8 changed files with 113 additions and 3 deletions
@@ -0,0 +1 @@
A = 1
@@ -0,0 +1,9 @@
import unittest
from .stubs import A
class TestSomeClass(unittest.TestCase):
def test_some_class(self):
some_class = A
pass