The following forum message was posted by clondike at 
http://sourceforge.net/projects/pydev/forums/forum/293649/topic/5010704:

Hello!

I am trying to run a unit test by using  Run As -> Python unit-test. The problem
is I get the following error:
pydev debugger: starting
Warning: Could not import the test runner: --py-test-params. Running with the
default pydev unittest runner instead.
Traceback (most recent call last):
  File "/proj/lteEclipse/releases/e4e6/eclipse/plugins/org.python.pydev.debug_2.
4.0.2012020116/pysrc/pydevd.py", line 1307, in <module>
    debugger.run(setup['file'], None, None)
  File "/proj/lteEclipse/releases/e4e6/eclipse/plugins/org.python.pydev.debug_2.
4.0.2012020116/pysrc/pydevd.py", line 1060, in run
    pydev_imports.execfile(file, globals, locals) #execute the script
  File "/proj/lteEclipse/releases/e4e6/eclipse/plugins/org.python.pydev.debug_2.
4.0.2012020116/pysrc/runfiles.py", line 163, in <module>
    main()
  File "/proj/lteEclipse/releases/e4e6/eclipse/plugins/org.python.pydev.debug_2.
4.0.2012020116/pysrc/runfiles.py", line 77, in main
    pydev_runfiles.main(configuration)
  File "/proj/lteEclipse/releases/e4e6/eclipse/plugins/org.python.pydev.debug_2.
4.0.2012020116/pysrc/pydev_runfiles.py", line 583, in main
    PydevTestRunner(configuration).run_tests()
  File "/proj/lteEclipse/releases/e4e6/eclipse/plugins/org.python.pydev.debug_2.
4.0.2012020116/pysrc/pydev_runfiles.py", line 210, in __init__
    self.__adjust_path()
  File "/proj/lteEclipse/releases/e4e6/eclipse/plugins/org.python.pydev.debug_2.
4.0.2012020116/pysrc/pydev_runfiles.py", line 226, in __adjust_path
    raise RuntimeError(msg)
RuntimeError: unknown type. 
--port
should be file or a directory.

When i debug the field self.files_or_dirs in pydev_runfiles contains the items
--port and a port number.

I have looked in all configurations but can not find where this comes from. 

How can I make my test run?

Best Regards
Henrik

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Pydev-users mailing list
Pydev-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pydev-users

Reply via email to