We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c430a41 commit cddab37Copy full SHA for cddab37
pytest_reportportal/service.py
@@ -7,7 +7,13 @@
7
import pytest
8
from _pytest.doctest import DoctestItem
9
from _pytest.main import Session
10
-from _pytest.nodes import File, Item
+
11
+try:
12
+ pkg_resources.get_distribution('pytest >= 3.4.0')
13
+ from _pytest.nodes import File, Item
14
+except pkg_resources.VersionConflict:
15
+ from _pytest.main import File, Item
16
17
from _pytest.python import Class, Function, Instance, Module
18
from _pytest.unittest import TestCaseFunction, UnitTestCase
19
from _pytest.warning_types import PytestWarning
0 commit comments