Re: [Tutor] Import modeuls

2008-07-21 Thread Kent Johnson
On Mon, Jul 21, 2008 at 5:15 AM, Oleg Oltar <[EMAIL PROTECTED]> wrote: > They want me to do one test runner which runs any test... And ideally it > should work on any platform You might want to look at nose or py.test, they both have test runners. I think you can give nose a directory and it w

Re: [Tutor] Import modeuls

2008-07-21 Thread arsyed
On Mon, Jul 21, 2008 at 5:15 AM, Oleg Oltar <[EMAIL PROTECTED]> wrote: > They want me to do one test runner which runs any test... And ideally it > should work on any platform > > When I added something to $PYTHONPATH, they told me to remove it... > > You can set environment variables within p

Re: [Tutor] Import modeuls

2008-07-21 Thread Oleg Oltar
They want me to do one test runner which runs any test... And ideally it should work on any platform When I added something to $PYTHONPATH, they told me to remove it... On Mon, Jul 21, 2008 at 12:11 PM, arsyed <[EMAIL PROTECTED]> wrote: > On Mon, Jul 21, 2008 at 4:46 AM, Oleg Oltar <[EMAIL

Re: [Tutor] Import modeuls

2008-07-21 Thread arsyed
On Mon, Jul 21, 2008 at 3:46 AM, Oleg Oltar <[EMAIL PROTECTED]> wrote: > If I am adding, __init__.py it still doesn't import anything. > Do I have add the import (from sampletest import EmailWithoutA) in my init > file? > > I didn't notice this before, but I don't think python does tilde expansio

Re: [Tutor] Import modeuls

2008-07-21 Thread Oleg Oltar
If I am adding, __init__.py it still doesn't import anything. Do I have add the import (from sampletest import EmailWithoutA) in my init file? On Mon, Jul 21, 2008 at 1:28 AM, arsyed <[EMAIL PROTECTED]> wrote: > On Sun, Jul 20, 2008 at 12:46 PM, Oleg Oltar <[EMAIL PROTECTED]> > wrote: > >> Hi >>

Re: [Tutor] Import modeuls

2008-07-20 Thread arsyed
On Sun, Jul 20, 2008 at 12:46 PM, Oleg Oltar <[EMAIL PROTECTED]> wrote: > Hi > I need to import several modules from many folders which has subfolders > > ~/folder/tests/sampletest.py > ~/folder/suites/samplesuit.py > > a suit uses tests from tests folder. I need to import them somehow from > test

[Tutor] Import modeuls

2008-07-20 Thread Oleg Oltar
Hi I need to import several modules from many folders which has subfolders ~/folder/tests/sampletest.py ~/folder/suites/samplesuit.py a suit uses tests from tests folder. I need to import them somehow from tests folder. I added ~/folder to PYTHONPATH in my test_runner: import sys import os sys