waldenner / robotframework

Automatically exported from code.google.com/p/robotframework
Apache License 2.0
0 stars 0 forks source link

run folder contains files that without extention name will get unpack error #581

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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

Original issue reported on code.google.com by fei...@gmail.com on 7 Jul 2010 at 8:47

GoogleCodeExporter commented 9 years ago
This stupid bug has already been fixed. RF 2.5.1 with the fix will be released 
this week or early next week.

Original comment by pekka.klarck on 7 Jul 2010 at 9:22