← Back to team overview

testtools-dev team mailing list archive

Re: [Merge] lp:~jseutter/testtools/py3_again into lp:testtools

 

> On May 13, 2012, at 05:42 AM, Robert Collins wrote:
> 
> >the change to raise is invalid - it causes the wrong exception to be
> >raised. AFAIK there is no way to do it compatibly with python 3, which is why
> >that file isn't menat to be compiled on python3.
> 
> You could use the six package, which supports a version compatible reraise():
> 
> http://packages.python.org/six/#syntax-compatibility
> 
> The implementation is fairly hairy, so it's probably not worth lifting that
> from the package.

I wish I understood Python packaging better so I could tell Python not to compile/install certain .py files.  In practice python 2 and 3 are going to be installed in different places so there isn't much point in deploying both files all the time.  I'll see if I can figure out how to do this.

Thanks for identifying the bug I introduced.
-- 
https://code.launchpad.net/~jseutter/testtools/py3_again/+merge/105569
Your team testtools developers is subscribed to branch lp:testtools.


Follow ups

References