Re: [Numpy-discussion] [numpy.testing] re-import when using coverage

2012-05-17 Thread Fabrice Silva
Le mercredi 16 mai 2012 à 22:58 +0200, Ralf Gommers a écrit : Both coverage=True and coverage=False work with your attached package. But it seems you attached an old version, because test_a.py doesn't include the actual test. obj = a.b.mycls() in test_a.py executes fine, so it may be a

Re: [Numpy-discussion] [numpy.testing] re-import when using coverage

2012-05-17 Thread Ralf Gommers
On Thu, May 17, 2012 at 9:48 AM, Fabrice Silva si...@lma.cnrs-mrs.frwrote: Le mercredi 16 mai 2012 à 22:58 +0200, Ralf Gommers a écrit : Both coverage=True and coverage=False work with your attached package. But it seems you attached an old version, because test_a.py doesn't include the

Re: [Numpy-discussion] [numpy.testing] re-import when using coverage

2012-05-17 Thread Fabrice Silva
Nautilus and file-roller are *** on me... I hope this one is good. Thanks for being patient :) Best regards -- Fabrice Silva mypackage.tar Description: Unix tar archive ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org

Re: [Numpy-discussion] [numpy.testing] re-import when using coverage

2012-05-17 Thread Ralf Gommers
On Thu, May 17, 2012 at 10:48 AM, Fabrice Silva si...@lma.cnrs-mrs.frwrote: Nautilus and file-roller are *** on me... I hope this one is good. Thanks for being patient :) That was the right tar file. The issue was the one Josef was pointing too (cover-inclusive), which has already been fixed

Re: [Numpy-discussion] [numpy.testing] re-import when using coverage

2012-05-17 Thread Fabrice Silva
Le jeudi 17 mai 2012 à 11:16 +0200, Ralf Gommers a écrit : On Thu, May 17, 2012 at 10:48 AM, Fabrice Silva si...@lma.cnrs-mrs.frwrote: Nautilus and file-roller are *** on me... I hope this one is good. Thanks for being patient :) That was the right tar file. The issue was the one

[Numpy-discussion] [numpy.testing] re-import when using coverage

2012-05-16 Thread Fabrice Silva
Hi, I am getting into troubles when using numpy.testing with coverage. A minimal example package is atached to this email. Unpack and run: $ python -c import mypackage; mypackage.test(verbose=10,coverage=False) $ python -c import mypackage; mypackage.test(verbose=10,coverage=True) Some

Re: [Numpy-discussion] [numpy.testing] re-import when using coverage

2012-05-16 Thread josef . pktd
On Wed, May 16, 2012 at 11:05 AM, Fabrice Silva si...@lma.cnrs-mrs.fr wrote: Hi, I am getting into troubles when using numpy.testing with coverage. A minimal example package is atached to this email. Unpack and run: $ python -c import mypackage; mypackage.test(verbose=10,coverage=False) $

Re: [Numpy-discussion] [numpy.testing] re-import when using coverage

2012-05-16 Thread Fabrice Silva
maybe it's this http://thread.gmane.org/gmane.comp.python.numeric.general/49785/focus=49787 Thanks for your reply, Not sure it is the same trouble, I'll have a deeper look at that thread... It helped in my case, and I don't have a problem running the tests with your mypackage (using my

Re: [Numpy-discussion] [numpy.testing] re-import when using coverage

2012-05-16 Thread Ralf Gommers
On Wed, May 16, 2012 at 7:01 PM, Fabrice Silva si...@lma.cnrs-mrs.frwrote: maybe it's this http://thread.gmane.org/gmane.comp.python.numeric.general/49785/focus=49787 Thanks for your reply, Not sure it is the same trouble, I'll have a deeper look at that thread... Both coverage=True and