problem with import autotest ...

B

bravegag

Hi all,

Please beware I am new to Python and have little experience with it.

I have a script that works just fine on linux but when I try to debug
from Windows using Eclipse and PyDEV plugin then it does not
work. The Python version is the same 2.3.x , and command line
is roughly the same.

from Unix:
mymodule.py said:
From Windows (Eclipse)
python.exe mymodule.py <my-params>

The point is that from Linux the "import autotest" works as
intended i.e. just allow the importing module use some functions
but from Windows it autoruns itself just by importing it, I do not
get why or how?
From Windows it does:

"Regression test.

This will find all modules whose name is "test_*" in the test
directory, and run them. Various command line options provide
additional facilities"

and then starts executing tests without ever getting to the main
of my module ...

Any clues?

TIA,
Best Regards,
Giovanni
 
B

Ben Finney

bravegag said:
I have a script that works just fine on linux but when I try to
debug from Windows using Eclipse and PyDEV plugin then it does not
work. The Python version is the same 2.3.x , and command line is
roughly the same.

2.3.x is not a version. Which versions are you using on each?
'2.3.5 (#2, Sep 4 2005, 22:01:42) \n[GCC 3.3.5 (Debian 1:3.3.5-13)]'
The point is that from Linux the "import autotest" works as intended
i.e. just allow the importing module use some functions but from
Windows it autoruns itself just by importing it, I do not get why or
how?
Traceback (most recent call last):
File "<stdin>", line 1, in ?
ImportError: No module named autotest

What is this 'autotest' module? Where are you expecting it to come
from?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,262
Messages
2,571,056
Members
48,769
Latest member
Clifft

Latest Threads

Top