nose-devs / nose

nose is nicer testing for python
http://readthedocs.org/docs/nose/en/latest/
1.36k stars 395 forks source link

Using __import__('nose', fromlist=[None]) gives TypeError: ``from list'' must be str, not NoneType #1075

Open NiklasRosenstein opened 6 years ago

NiklasRosenstein commented 6 years ago

Tested with Python 3.6

>>> __import__('os.path', fromlist=[None])
<module 'ntpath' from 'C:\\Program Files\\Python36\\lib\\ntpath.py'>
>>> __import__('nose', fromlist=[None])
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "<frozen importlib._bootstrap>", line 1014, in _handle_fromlist
TypeError: Item in ``from list'' must be str, not NoneType