Skip to content

Commit

Permalink
Merge pull request #983 from mitya57/master
Browse files Browse the repository at this point in the history
Make tests work with Python ≥ 3.5
  • Loading branch information
jszakmeister committed Feb 2, 2016
2 parents 6e11bf9 + 916fc67 commit 1dd4921
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ python:
- 3.2
- 3.3
- 3.4
- 3.5
- pypy
install:
- pip uninstall -y nose
Expand Down
1 change: 1 addition & 0 deletions functional_tests/test_load_tests_from_test_case.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
1 change: 1 addition & 0 deletions nose/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -643,6 +643,7 @@ class C(cls):
pass
C.__module__ = module
C.__name__ = cls.__name__
C.__qualname__ = cls.__name__
return C


Expand Down
1 change: 1 addition & 0 deletions unit_tests/test_xunit.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ def mktest():
class TC(unittest.TestCase):
def runTest(self):
pass
TC.__qualname__ = TC.__name__
test = TC()
return test

Expand Down

0 comments on commit 1dd4921

Please sign in to comment.