New submission from Skip Montanaro <s...@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
level=-1.

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 <rep...@bugs.python.org>
<http://bugs.python.org/issue8392>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to