Skip to content

Commit ab55de8

Browse files
Merge pull request #84 from bigbZik/fix-package
Fix for issue with pytest Package
2 parents 2064b09 + ddcca5e commit ab55de8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pytest_reportportal/service.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -354,16 +354,16 @@ def _add_item_hier_parts_parametrize(item, report_parts, tests_parts, rp_name=""
354354
return rp_name
355355

356356
@staticmethod
357-
def _add_item_hier_parts_other(item_parts, item, type, hier_flag, report_parts, rp_name=""):
357+
def _add_item_hier_parts_other(item_parts, item, item_type, hier_flag, report_parts, rp_name=""):
358358

359359
for part in item_parts:
360360

361-
if isinstance(part, type):
361+
if type(part) is item_type:
362362

363-
if type is Module:
363+
if item_type is Module:
364364
module_path = str(item.fspath.new(dirname=rp_name, basename=part.fspath.basename, drive=""))
365365
rp_name = module_path if rp_name else module_path[1:]
366-
elif type in (Class, Function):
366+
elif item_type in (Class, Function):
367367
rp_name += ("::" if rp_name else "") + part.name
368368

369369
if hier_flag:

0 commit comments

Comments
 (0)