[New-bugs-announce] [issue8392] unit tests rather light on testing __import__(..., level)

Skip Montanaro report at bugs.python.org
Wed Apr 14 02:03:32 CEST 2010

New submission from Skip Montanaro <skip at pobox.com>:

At work we are in the process of migrating from Python 2.4 to 2.6.  One
bit of Boost.Python code needs to use PyImport_ImportModuleLevel which
references the __import__ docs.  That describes the use of the level arg.
I then went around looking for examples and didn't find much, certainly not in the Lib/test directory.  I only saw a couple examples which used
level and they both use level=0, so don't test relative imports or

I don't know that I have enough knowledge of how this stuff is supposed
to work, but will give it a shot.

assignee: skip.montanaro
components: Tests
messages: 103102
nosy: skip.montanaro
priority: normal
severity: normal
stage: unit test needed
status: open
title: unit tests rather light on testing __import__(..., level)
versions: Python 2.7, Python 3.1, Python 3.2, Python 3.3

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list