From a2ebf8097ab2cfedd97d8a5f16e865008506bc46 Mon Sep 17 00:00:00 2001 From: Elazar Gershuni Date: Fri, 2 Feb 2018 04:07:31 +0200 Subject: [PATCH] ArgSuite: do not test options.config_file --- mypy/options.py | 2 +- mypy/test/testargs.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/mypy/options.py b/mypy/options.py index e8392ce64807..c62520075d34 100644 --- a/mypy/options.py +++ b/mypy/options.py @@ -131,7 +131,7 @@ def __init__(self) -> None: self.scripts_are_modules = False # Config file name - self.config_file = 'setup.cfg' # type: Optional[str] + self.config_file = None # type: Optional[str] # Write junit.xml to given file self.junit_xml = None # type: Optional[str] diff --git a/mypy/test/testargs.py b/mypy/test/testargs.py index c77b0c3f74c5..20db610cda18 100644 --- a/mypy/test/testargs.py +++ b/mypy/test/testargs.py @@ -14,4 +14,6 @@ class ArgSuite(Suite): def test_coherence(self) -> None: options = Options() _, parsed_options = process_options([], require_targets=False) + # FIX: test this too. Requires changing working dir to avoid finding 'setup.cfg' + options.config_file = parsed_options.config_file assert_equal(options, parsed_options)