Skip to content

Critical Bug - Django tests cannot be loaded with unittest 2 0.8.0 #89

@GoogleCodeExporter

Description

@GoogleCodeExporter

Django version 1.6.7, unittest2 version 0.8.0

Line 413 of unittest2/loader.py:
the function self._find_test_path() can return None, but on the same it is 
assigned to a tuple. So when it happens that the function returns None, an 
exception is raised 8and not catched at all): "TypeError: 'NoneType' object is 
not iterable".

Fix is easy (I aleady made it: if the result is None set the tuple to (None, 
None)) but is pretty urgent I think.

Cheers,
Stefano.

Original issue reported on code.google.com by stefano....@gmail.com on 28 Nov 2014 at 3:45

Attachments:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions