fixed PY-11617 Nosetest runner: simple function tests cannot jump to source

This commit is contained in:
Ekaterina Tuzova
2013-12-17 17:51:10 +04:00
parent 293de59bf5
commit a239ed4396
5 changed files with 151 additions and 52 deletions
+3 -3
View File
@@ -107,7 +107,7 @@ class TeamcityPlugin(ErrorClassPlugin, TextTestResult, TeamcityTestResult):
location = location + ":" + str(test.test.lineno)
else:
suite = strclass(test.__class__)
suite_location = "python_uttestid://" + suite
suite_location = "python_nosetestid://" + suite
try:
from nose_helper.util import func_lineno
@@ -124,8 +124,8 @@ class TeamcityPlugin(ErrorClassPlugin, TextTestResult, TeamcityTestResult):
except:
test_id = test.id()
suite_id = test_id[:test_id.rfind(".")]
suite_location = "python_uttestid://" + str(suite_id)
location = "python_uttestid://" + str(test_id)
suite_location = "python_nosetestid://" + str(suite_id)
location = "python_nosetestid://" + str(test_id)
return (location, suite_location)