Skip to content

Commit a2ebf80

Browse files
committed
ArgSuite: do not test options.config_file
1 parent 83b6c85 commit a2ebf80

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

mypy/options.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ def __init__(self) -> None:
131131
self.scripts_are_modules = False
132132

133133
# Config file name
134-
self.config_file = 'setup.cfg' # type: Optional[str]
134+
self.config_file = None # type: Optional[str]
135135

136136
# Write junit.xml to given file
137137
self.junit_xml = None # type: Optional[str]

mypy/test/testargs.py

+2
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,6 @@ class ArgSuite(Suite):
1414
def test_coherence(self) -> None:
1515
options = Options()
1616
_, parsed_options = process_options([], require_targets=False)
17+
# FIX: test this too. Requires changing working dir to avoid finding 'setup.cfg'
18+
options.config_file = parsed_options.config_file
1719
assert_equal(options, parsed_options)

0 commit comments

Comments
 (0)