Skip to content

Commit

Permalink
Fix Python 2 support.
Browse files Browse the repository at this point in the history
  • Loading branch information
ltfish committed Apr 8, 2020
1 parent 22a3087 commit c6861db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nose2/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ def test_name(test, qualname=True):
if sys.version_info >= (3, 3):
tid = "%s.%s" % (test._testFunc.__module__, test._testFunc.__qualname__)
else:
tid = "%s.%s" % (test._testFunc.__module__, test._testFunc.im_class)
tid = "%s.%s" % (test._testFunc.__module__, test._testFunc.__name__)
else:
if sys.version_info >= (3, 5) and not qualname:
test_module = test.__class__.__module__
Expand Down

0 comments on commit c6861db

Please sign in to comment.