That won't work if you use `testpkg` somewhere else.  As IPython has a huge code base, it is hard to avoid used names for a temporary module.  See the fix I did for 2975de6aff4d44b86327d14af995f2733bedf9d8.  But if you still want to use `testpkg`, I'd change that.