File tree 2 files changed +9
-4
lines changed
2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -131,7 +131,7 @@ def __init__(self) -> None:
131
131
self .scripts_are_modules = False
132
132
133
133
# Config file name
134
- self .config_file = 'setup.cfg' # type: Optional[str]
134
+ self .config_file = None # type: Optional[str]
135
135
136
136
# Write junit.xml to given file
137
137
self .junit_xml = None # type: Optional[str]
Original file line number Diff line number Diff line change 8
8
from mypy .test .helpers import Suite , assert_equal
9
9
from mypy .options import Options
10
10
from mypy .main import process_options
11
+ import tempfile
12
+ import os
11
13
12
14
13
15
class ArgSuite (Suite ):
14
16
def test_coherence (self ) -> None :
15
- options = Options ()
16
- _ , parsed_options = process_options ([], require_targets = False )
17
- assert_equal (options , parsed_options )
17
+ with tempfile .TemporaryDirectory (prefix = 'mypy-test-' ) as tmpdir :
18
+ # Enter directory to avoid finding 'setup.cfg'
19
+ os .chdir (tmpdir )
20
+ options = Options ()
21
+ _ , parsed_options = process_options ([], require_targets = False )
22
+ assert_equal (options , parsed_options )
You can’t perform that action at this time.
0 commit comments