diff --git a/.travis.yml b/.travis.yml index d051e5e1..ec90ef81 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,6 +5,7 @@ python: - 3.2 - 3.3 - 3.4 + - 3.5 - pypy install: - pip uninstall -y nose diff --git a/functional_tests/test_load_tests_from_test_case.py b/functional_tests/test_load_tests_from_test_case.py index 42f8563d..13d0c8a2 100644 --- a/functional_tests/test_load_tests_from_test_case.py +++ b/functional_tests/test_load_tests_from_test_case.py @@ -29,6 +29,7 @@ def setUp(self): pass def tearDown(self): pass + Derived.__qualname__ = Derived.__name__ # must use nose loader here because the default loader in 2.3 # won't load tests from base classes l = loader.TestLoader() diff --git a/nose/util.py b/nose/util.py index bfe16589..80ab1d4e 100644 --- a/nose/util.py +++ b/nose/util.py @@ -643,6 +643,7 @@ class C(cls): pass C.__module__ = module C.__name__ = cls.__name__ + C.__qualname__ = cls.__name__ return C diff --git a/unit_tests/test_xunit.py b/unit_tests/test_xunit.py index 944d2859..261436b0 100644 --- a/unit_tests/test_xunit.py +++ b/unit_tests/test_xunit.py @@ -16,6 +16,7 @@ def mktest(): class TC(unittest.TestCase): def runTest(self): pass + TC.__qualname__ = TC.__name__ test = TC() return test