﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
20437	Testrunner tests fail with unittest2 installed	Florian Apolloner	nobody	"{{{
(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."	Bug	closed	Testing framework	dev	Normal	fixed			Accepted	0	0	0	0	0	0
