#20437: Testrunner tests fail with unittest2 installed
---------------------------------------------+------------------------
               Reporter:  apollo13           |          Owner:  nobody
                   Type:  Bug                |         Status:  new
              Component:  Testing framework  |        Version:  master
               Severity:  Normal             |       Keywords:
           Triage Stage:  Accepted           |      Has patch:  0
    Needs documentation:  0                  |    Needs tests:  0
Patch needs improvement:  0                  |  Easy pickings:  0
                  UI/UX:  0                  |
---------------------------------------------+------------------------
 {{{
 (d8e222551818f5a0)florian@apollo13:~/sources/django.git/tests$
 PYTHONPATH=.. ./runtests.py --settings=test_sqlite test_runner
 Creating test database for alias 'default'...
 Creating test database for alias 'other'...
 .....E.......................
 ======================================================================
 ERROR: test_dotted_test_method_vanilla_unittest
 (test_runner.test_discover_runner.DiscoverRunnerTest)
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File
 "/home/florian/sources/django.git/tests/test_runner/test_discover_runner.py",
 line 37, in test_dotted_test_method_vanilla_unittest
 ["test_discovery_sample.tests_sample.TestVanillaUnittest.test_sample"],
   File "/home/florian/sources/django.git/django/test/runner.py", line 63,
 in build_suite
     tests = self.test_loader.loadTestsFromName(label)
   File "/home/florian/.virtualenvs/d8e222551818f5a0/local/lib/python2.7
 /site-packages/unittest2/loader.py", line 133, in loadTestsFromName
     test = obj()
 TypeError: unbound method test_sample() must be called with
 TestVanillaUnittest instance as first argument (got nothing instead)

 ----------------------------------------------------------------------
 Ran 29 tests in 4.162s

 FAILED (errors=1)
 Destroying test database for alias 'default'...
 Destroying test database for alias 'other'...
 }}}

 This only happens when unittest2 is installed from pypi.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/20437>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to