Skip to content

Commit 1dd4921

Browse files
committed
Merge pull request nose-devs#983 from mitya57/master
Make tests work with Python ≥ 3.5
2 parents 6e11bf9 + 916fc67 commit 1dd4921

File tree

4 files changed

+4
-0
lines changed

4 files changed

+4
-0
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ python:
55
- 3.2
66
- 3.3
77
- 3.4
8+
- 3.5
89
- pypy
910
install:
1011
- pip uninstall -y nose

functional_tests/test_load_tests_from_test_case.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ def setUp(self):
2929
pass
3030
def tearDown(self):
3131
pass
32+
Derived.__qualname__ = Derived.__name__
3233
# must use nose loader here because the default loader in 2.3
3334
# won't load tests from base classes
3435
l = loader.TestLoader()

nose/util.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -643,6 +643,7 @@ class C(cls):
643643
pass
644644
C.__module__ = module
645645
C.__name__ = cls.__name__
646+
C.__qualname__ = cls.__name__
646647
return C
647648

648649

unit_tests/test_xunit.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ def mktest():
1616
class TC(unittest.TestCase):
1717
def runTest(self):
1818
pass
19+
TC.__qualname__ = TC.__name__
1920
test = TC()
2021
return test
2122

0 commit comments

Comments
 (0)