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, 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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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, 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
Hi Henrik,
This forum is now disabled and kept alive only for history searching. Please post to StackOverflow with a 'pydev' tag instead.
Cheers,
Fabio