File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 18
18
':python_version == "3.6"' : ["dataclasses" ],
19
19
"lint" : ["pre-commit~=1.18" ],
20
20
"docs" : ["sphinx" ],
21
- "tests" : ["mypy" ],
21
+ "tests" : ["mypy; implementation_name != 'pypy' " ],
22
22
}
23
23
EXTRAS_REQUIRE ["dev" ] = (
24
24
EXTRAS_REQUIRE ["enum" ]
Original file line number Diff line number Diff line change 3
3
import os
4
4
import unittest
5
5
6
- import mypy .api
6
+ mypy_installed = True
7
+ try :
8
+ import mypy .api
9
+ except ImportError :
10
+ # mypy not installed on pypy (see setup.py)
11
+ mypy_installed = False
7
12
8
13
HERE = os .path .dirname (__file__ )
9
14
TEST_OUTPUT_DIR = os .path .join (HERE , "test-output" )
14
19
"""
15
20
16
21
22
+ @unittest .skipUnless (mypy_installed , "mypy required" )
17
23
class TestMypyPlugin (unittest .TestCase ):
18
24
maxDiff = None
19
25
You can’t perform that action at this time.
0 commit comments