File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 1010from _pytest .nodes import File , Item
1111from _pytest .python import Class , Function , Instance , Module
1212from _pytest .unittest import TestCaseFunction , UnitTestCase
13+ from _pytest .warning_types import PytestWarning
1314from reportportal_client import ReportPortalServiceAsync
1415from six import with_metaclass
1516from six .moves import queue
@@ -459,9 +460,10 @@ def _get_item_name(test_item):
459460 if len (name ) > 256 :
460461 name = name [:256 ]
461462 test_item .warn (
462- 'C1' ,
463- 'Test node ID was truncated to "{}" because of name size '
464- 'constrains on reportportal' .format (name )
463+ PytestWarning (
464+ 'Test node ID was truncated to "{}" because of name size '
465+ 'constrains on reportportal' .format (name )
466+ )
465467 )
466468 return name
467469
You can’t perform that action at this time.
0 commit comments