[MERGE] import both c-extension and python module with the same name for testing

Robert Collins robertc at robertcollins.net
Tue Aug 7 05:49:58 BST 2007


On Tue, 2007-08-07 at 00:41 -0400, Martin Pool wrote:
> 
> The case of loading a module with no dots is not actually tested.
> Some 
> options are:
> 
> 1- remove support for this until we care enough to test it
> 2- leave it in and untested
> 3- do a test which loads some python top-level module - it would not 
> need to have a C implementation to be a reasonable test
> 4- add a test module which is not inside bzrlib
> 
> I think I would prefer 3.

its very easy to add a new top level module:
mkdir('foo')
sys.path.insert(0, 'foo')
module_file = file('foo/modulename.so', 'wb)
...

-Rob

-- 
GPG key available at: <http://www.robertcollins.net/keys.txt>.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20070807/f088c87d/attachment.pgp 


More information about the bazaar mailing list