Under 1.4.6 of Pydev, all of my Python Unittest configurations worked.
Under 1.4.7, they do not.  I have not changed the setup, and the
unittests work from the commandline when running from the testing
directory.  The Unittest configuration is set up to have the working
directory at ${workspace_loc:duplicity-src/testing}, same as 1.4.6.

------
pydev debugger: starting
Finding files...
['/home/ken/workspace/duplicity-src/testing/finaltest.py'] ... done
Importing test modules ... Traceback (most recent call last):
  File
"/home/ken/eclipse3.4/plugins/org.python.pydev.debug_1.4.7.2843/pysrc/runfiles.py",
line 331, in __get_module_from_str
    mod = __import__(modname)
ImportError: No module named testing.finaltest
ERROR: Module: testing.finaltest could not be imported.
done.
------

It should be importing finaltest, not testing.finaltest.

It appears to me that Pydev is doing something different with the import
and the CWD.  Can you suggest a workaround for this?

...Thanks,
...Ken

------------------------------------------------------------------------------
_______________________________________________
Pydev-users mailing list
Pydev-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pydev-users

Reply via email to