Ticket #9031: 9031.diff

File 9031.diff, 660 bytes (added by guettli, 7 years ago)
  • django/test/simple.py

     
    9797        except TypeError:
    9898            raise ValueError("Test label '%s' does not refer to a test class" % label)           
    9999    else: # label is app.TestClass.test_method
     100        if not TestClass:
     101            raise ValueError("TestCase %s not found. Searched in %s.models and %s.tests" % (
     102                    parts[1], parts[0], parts[0]))
    100103        return TestClass(parts[2])
    101104
    102105def run_tests(test_labels, verbosity=1, interactive=True, extra_tests=[]):
Back to Top