[issue27684] Incorrect exception message of ImportError constructor

2016-08-04 Thread Berker Peksag
Berker Peksag added the comment: This is a duplicate of issue 21578. -- nosy: +berker.peksag resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Misleading error message when ImportError called with invalid keyword args type: -> behavior __

[issue27684] Incorrect exception message of ImportError constructor

2016-08-04 Thread Xiang Zhang
New submission from Xiang Zhang: ImportError accepts name and path as keyword-only parameters, but when invalid keyword argument passed, it emits wrong exception message saying that ImportError does not take keyword arguments. >>> ImportError(name='name', path='path') ImportError() >>> ImportE