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 d5bc385 commit cbd088bCopy full SHA for cbd088b
mypy/test/testreports.py
@@ -4,7 +4,12 @@
4
from mypy.test.helpers import Suite, assert_equal
5
from mypy.report import CoberturaPackage, get_line_rate
6
7
-import lxml.etree as etree # type: ignore
+try:
8
+ import lxml.etree as etree # type: ignore
9
+except ImportError as exc:
10
+ import pytest # type: ignore # no pytest in typeshed
11
+
12
+ pytestmark = pytest.mark.skip("no lxml: {}".format(exc))
13
14
15
class CoberturaReportSuite(Suite):
0 commit comments