Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

Can't run test with Run As -> Python...

Henrik
2012-02-10
2013-03-15
  • Henrik
    Henrik
    2012-02-10

    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

     
  • Fabio Zadrozny
    Fabio Zadrozny
    2012-02-13

    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