Skip to content

Commit 4299098

Browse files
Avoid adding mypy_extension by using pytest skip
1 parent b793f9b commit 4299098

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

tests/unittest_builder.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
import unittest
3030

3131
import pytest
32-
from mypy_extensions import NoReturn
3332

3433
from astroid import Instance, builder, nodes, test_utils, util
3534
from astroid.const import PY38_PLUS
@@ -99,7 +98,10 @@ def test_callfunc_lineno(self) -> None:
9998
self.assertEqual(arg.fromlineno, 10 + i)
10099
self.assertEqual(arg.tolineno, 10 + i)
101100

102-
def test_function_lineno(self) -> NoReturn:
101+
@pytest.mark.skip(
102+
"FIXME http://bugs.python.org/issue10445 (no line number on function args)"
103+
)
104+
def test_function_lineno(self) -> None:
103105
stmts = self.astroid.body
104106
# on line 15:
105107
# def definition(a,
@@ -114,10 +116,6 @@ def test_function_lineno(self) -> NoReturn:
114116
self.assertIsInstance(return_, nodes.Return)
115117
self.assertEqual(return_.fromlineno, 18)
116118
self.assertEqual(return_.tolineno, 18)
117-
self.skipTest(
118-
"FIXME http://bugs.python.org/issue10445 "
119-
"(no line number on function args)"
120-
)
121119

122120
def test_decorated_function_lineno(self) -> None:
123121
astroid = builder.parse(

0 commit comments

Comments
 (0)