From 09d1055cd32acfd1f6ed88552bbc6c8e5c0cc1b3 Mon Sep 17 00:00:00 2001 From: Sebastian Rittau Date: Thu, 18 Jul 2019 17:02:12 +0200 Subject: [PATCH] Remove mypy new analyzer tests (#3128) Now that the new analyzer is the default, this does exactly the same as the normal mypy self test. --- .travis.yml | 8 -------- tests/mypy_test.py | 3 --- 2 files changed, 11 deletions(-) diff --git a/.travis.yml b/.travis.yml index 011b52121..99a3c65d4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -13,16 +13,8 @@ matrix: env: - TEST_CMD="./tests/mypy_test.py" - INSTALL="mypy" - - name: "mypy new analyzer" - env: - - TEST_CMD="./tests/mypy_test.py -a" - - INSTALL="mypy" - name: "mypy self test" env: TEST_CMD="./tests/mypy_selftest.py" - - name: "mypy self test (new analyzer)" - env: - - NEWSEMANAL=1 - - TEST_CMD="./tests/mypy_selftest.py" - name: "check file consistency" env: TEST_CMD="./tests/check_consistent.py" - name: "flake8" diff --git a/tests/mypy_test.py b/tests/mypy_test.py index 7ac6f077b..d4ffca111 100755 --- a/tests/mypy_test.py +++ b/tests/mypy_test.py @@ -21,7 +21,6 @@ parser = argparse.ArgumentParser(description="Test runner for typeshed. " "Patterns are unanchored regexps on the full path.") parser.add_argument('-v', '--verbose', action='count', default=0, help="More output") parser.add_argument('-n', '--dry-run', action='store_true', help="Don't actually run mypy") -parser.add_argument('-a', '--new-analyzer', action='store_true', help="Use new mypy semantic analyzer") parser.add_argument('-x', '--exclude', type=str, nargs='*', help="Exclude pattern") parser.add_argument('-p', '--python-version', type=str, nargs='*', help="These versions only (major[.minor])") @@ -133,8 +132,6 @@ def main(): flags.append('--no-site-packages') flags.append('--show-traceback') flags.append('--no-implicit-optional') - if args.new_analyzer: - flags.append('--new-semantic-analyzer') if args.warn_unused_ignores: flags.append('--warn-unused-ignores') sys.argv = ['mypy'] + flags + files