Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 581 by feiyuw: run folder contains files that without extention name will get unpack error
http://code.google.com/p/robotframework/issues/detail?id=581

if a folder structure like below:
 - testsuite
    - testcase1
    - testcase2
"testcase1" and "testcase2" are both normal txt file.
run as: pybot testsuite
will get error:
[ ERROR ] Unexpected error: ValueError: need more than 1 value to unpack

I debug this case, and find in robot/parsing/populators.py:
    def _is_init_file(self, name, path):
        if not os.path.isfile(path):
            return False
        base, extension = name.lower().rsplit('.', 1)
### if name contains no ".", it will raise exception here
        return base == '__init__' and extension in READERS


Reply via email to