コード例 #1
0
 def cases(self) -> List[DataDrivenTestCase]:
     c = []  # type: List[DataDrivenTestCase]
     for f in python_eval_files:
         c += parse_test_cases(os.path.join(test_data_prefix, f),
                               test_python_evaluation, test_temp_dir, True)
     if sys.version_info.major == 3 and sys.version_info.minor >= 4:
         for f in python_34_eval_files:
             c += parse_test_cases(os.path.join(test_data_prefix, f),
                 test_python_evaluation, test_temp_dir, True)
     return c
コード例 #2
0
ファイル: testtransform.py プロジェクト: ecprice/mypy
 def cases(self):
     c = []
     for f in self.transform_files:
         c += parse_test_cases(
             os.path.join(test_data_prefix, f), test_transform, base_path=test_temp_dir, native_sep=True
         )
     return c
コード例 #3
0
ファイル: testsemanal.py プロジェクト: vnitinv/mypy
 def cases(self):
     # Read test cases from test case description files.
     c = []
     for f in semanal_error_files:
         c += parse_test_cases(os.path.join(test_data_prefix, f),
                               test_semanal_error, test_temp_dir, optional_out=True)
     return c
コード例 #4
0
ファイル: testsemanal.py プロジェクト: JamesTFarrington/mypy
 def cases(self):
     """Test case descriptions"""
     c = []
     for f in semanal_typeinfo_files:
         c += parse_test_cases(os.path.join(test_data_prefix, f),
                               self.run_test, test_temp_dir)
     return c
コード例 #5
0
ファイル: testsemanal.py プロジェクト: umkay/mypy
 def cases(self) -> List[DataDrivenTestCase]:
     """Test case descriptions"""
     c = []  # type: List[DataDrivenTestCase]
     for f in semanal_typeinfo_files:
         c += parse_test_cases(os.path.join(test_data_prefix, f),
                               self.run_test, test_temp_dir)
     return c
コード例 #6
0
ファイル: testparse.py プロジェクト: yang/mypy-hack
 def cases(self):
     # The test case descriptions are stored in data files.
     c = []
     for f in self.parse_files:
         c += parse_test_cases(
             os.path.join(config.test_data_prefix, f), test_parser)
     return c
コード例 #7
0
ファイル: testparse.py プロジェクト: zanellia/mypy
 def cases(cls) -> List[DataDrivenTestCase]:
     # The test case descriptions are stored in data files.
     c = []  # type: List[DataDrivenTestCase]
     for f in cls.parse_files:
         c += parse_test_cases(os.path.join(config.test_data_prefix, f),
                               test_parser)
     return c
コード例 #8
0
ファイル: testparse.py プロジェクト: alexandrul/mypy
 def cases(self) -> List[DataDrivenTestCase]:
     # The test case descriptions are stored in data files.
     c = []  # type: List[DataDrivenTestCase]
     for f in self.parse_files:
         c += parse_test_cases(
             os.path.join(config.test_data_prefix, f), test_parser)
     return c
コード例 #9
0
ファイル: testtransform.py プロジェクト: alexandrul/mypy
 def cases(self) -> List[DataDrivenTestCase]:
     c = []  # type: List[DataDrivenTestCase]
     for f in self.transform_files:
         c += parse_test_cases(os.path.join(test_data_prefix, f),
                               test_transform,
                               base_path=test_temp_dir,
                               native_sep=True)
     return c
コード例 #10
0
ファイル: testtransform.py プロジェクト: gknezevic/solution
 def cases(cls) -> List[DataDrivenTestCase]:
     c = []  # type: List[DataDrivenTestCase]
     for f in cls.transform_files:
         c += parse_test_cases(os.path.join(test_data_prefix, f),
                               test_transform,
                               base_path=test_temp_dir,
                               native_sep=True)
     return c
コード例 #11
0
 def cases(self):
     c = []
     for f in semanal_files:
         c += parse_test_cases(os.path.join(test_data_prefix, f),
                               test_semanal,
                               test_temp_dir,
                               optional_out=True)
     return c
コード例 #12
0
ファイル: testtransform.py プロジェクト: amitt001/mypy
 def cases(self):
     c = []
     for f in self.transform_files:
         c += parse_test_cases(os.path.join(test_data_prefix, f),
                               test_transform,
                               base_path=test_temp_dir,
                               native_sep=True)
     return c
コード例 #13
0
 def cases(cls) -> List[DataDrivenTestCase]:
     # Read test cases from test case description files.
     c = []  # type: List[DataDrivenTestCase]
     for f in semanal_error_files:
         c += parse_test_cases(os.path.join(test_data_prefix, f),
                               test_semanal_error,
                               test_temp_dir,
                               optional_out=True)
     return c
コード例 #14
0
 def cases(cls) -> List[DataDrivenTestCase]:
     c = []  # type: List[DataDrivenTestCase]
     for f in cmdline_files:
         c += parse_test_cases(os.path.join(test_data_prefix, f),
                               test_python_evaluation,
                               base_path=test_temp_dir,
                               optional_out=True,
                               native_sep=True)
     return c
コード例 #15
0
ファイル: testsemanal.py プロジェクト: AXGKl/Transcrypt
 def cases(self):
     c = []
     for f in semanal_files:
         c += parse_test_cases(os.path.join(test_data_prefix, f),
                               test_semanal,
                               base_path=test_temp_dir,
                               optional_out=True,
                               native_sep=True)
     return c
コード例 #16
0
ファイル: testsemanal.py プロジェクト: umkay/mypy
 def cases(self) -> List[DataDrivenTestCase]:
     c = []  # type: List[DataDrivenTestCase]
     for f in semanal_files:
         c += parse_test_cases(os.path.join(test_data_prefix, f),
                               test_semanal,
                               base_path=test_temp_dir,
                               optional_out=True,
                               native_sep=True)
     return c
コード例 #17
0
ファイル: testcmdline.py プロジェクト: willywu/mypy
 def cases(self) -> List[DataDrivenTestCase]:
     c = []  # type: List[DataDrivenTestCase]
     for f in cmdline_files:
         c += parse_test_cases(os.path.join(test_data_prefix, f),
                               test_python_evaluation,
                               base_path=test_temp_dir,
                               optional_out=True,
                               native_sep=True)
     return c
コード例 #18
0
ファイル: testdyncheck.py プロジェクト: FlorianLudwig/mypy
 def cases(self):
     c = []
     for f in self.test_case_files:
         c += parse_test_cases(
             os.path.join(test_data_prefix, f),
             builtins_wrapper(test_transform,
                              os.path.join(test_data_prefix,
                                           TRANSFORM_BUILTINS)),
             test_temp_dir, True)
     return c
コード例 #19
0
ファイル: testicodegen.py プロジェクト: silky/mypy
 def cases(self):
     c = []
     for f in self.test_case_files:
         c += parse_test_cases(
             os.path.join(test_data_prefix, f),
             builtins_wrapper(
                 test_transform,
                 os.path.join(test_data_prefix, ICODE_GEN_BUILTINS)),
             test_temp_dir, True)
     return c
コード例 #20
0
 def cases(cls) -> List[DataDrivenTestCase]:
     if sys.platform == 'win32':
         return []  # Nothing here works on Windows.
     c = []  # type: List[DataDrivenTestCase]
     for f in files:
         tc = parse_test_cases(os.path.join(test_data_prefix, f), None,
                               test_temp_dir, True)
         c += [
             case for case in tc
             if cls.has_stable_flags(case) and cls.is_incremental(case)
         ]
     return c
コード例 #21
0
 def cases(cls) -> List[DataDrivenTestCase]:
     c = []  # type: List[DataDrivenTestCase]
     for f in semanal_symtable_files:
         c += parse_test_cases(os.path.join(test_data_prefix, f), None,
                               test_temp_dir)
     return c
コード例 #22
0
ファイル: testtypegen.py プロジェクト: zanellia/mypy
 def cases(cls) -> List[DataDrivenTestCase]:
     c = []  # type: List[DataDrivenTestCase]
     for f in cls.files:
         c += parse_test_cases(os.path.join(config.test_data_prefix, f),
                               None, config.test_temp_dir)
     return c
コード例 #23
0
ファイル: testsemanal.py プロジェクト: JamesTFarrington/mypy
 def cases(self):
     c = []
     for f in semanal_symtable_files:
         c += parse_test_cases(os.path.join(test_data_prefix, f),
                               self.run_test, test_temp_dir)
     return c
コード例 #24
0
ファイル: testoutput.py プロジェクト: silky/mypy
 def cases(self):
     c = []
     for f in output_files:
         c += parse_test_cases(os.path.join(test_data_prefix, f),
                               test_output, test_temp_dir, True)
     return c
コード例 #25
0
ファイル: testoutput.py プロジェクト: FlorianLudwig/mypy
 def cases(self):
     c = []
     for f in output_files:
         c += parse_test_cases(os.path.join(test_data_prefix, f),
                               test_output, test_temp_dir, True)
     return c
コード例 #26
0
 def cases(self):
     c = []
     for f in semanal_symtable_files:
         c += parse_test_cases(os.path.join(test_data_prefix, f),
                               self.run_test, test_temp_dir)
     return c
コード例 #27
0
 def cases(self):
     c = []
     for f in python_eval_files:
         c += parse_test_cases(os.path.join(test_data_prefix, f),
                               test_python_evaluation, test_temp_dir, True)
     return c
コード例 #28
0
ファイル: testtransform.py プロジェクト: jhance/mypy
 def cases(self):
     c = []
     for f in self.transform_files:
         c += parse_test_cases(os.path.join(test_data_prefix, f),
                               test_transform, test_temp_dir)
     return c
コード例 #29
0
ファイル: testtransform.py プロジェクト: FlorianLudwig/mypy
 def cases(self):
     c = []
     for f in self.transform_files:
         c += parse_test_cases(os.path.join(test_data_prefix, f),
                               test_transform, test_temp_dir)
     return c
コード例 #30
0
ファイル: teststubgen.py プロジェクト: alexandrul/mypy
 def cases(self) -> List[DataDrivenTestCase]:
     c = []  # type: List[DataDrivenTestCase]
     for path in self.test_data_files:
         c += parse_test_cases(os.path.join(config.test_data_prefix, path), test_stubgen)
     return c
コード例 #31
0
 def cases(self) -> List[DataDrivenTestCase]:
     c = []  # type: List[DataDrivenTestCase]
     for f in cmdline_files:
         c += parse_test_cases(os.path.join(test_data_prefix, f),
                               test_python_evaluation, test_temp_dir, True)
     return c
コード例 #32
0
 def cases(self):
     c = []
     for path in self.test_data_files:
         c += parse_test_cases(os.path.join(config.test_data_prefix, path),
                               test_stubgen)
     return c
コード例 #33
0
ファイル: testparse.py プロジェクト: yang/mypy-hack
 def cases(self):
     # Test case descriptions are in an external file.
     return parse_test_cases(os.path.join(config.test_data_prefix,
                                          'parse-errors.test'),
                             test_parse_error)
コード例 #34
0
 def cases(self):
     c = []
     for f in self.files:
         c += parse_test_cases(os.path.join(config.test_data_prefix, f),
                               self.run_test, config.test_temp_dir)
     return c
コード例 #35
0
ファイル: testsemanal.py プロジェクト: mason-bially/mypy
 def cases(self):
     c = []
     for f in semanal_files:
         c += parse_test_cases(os.path.join(test_data_prefix, f),
                               test_semanal, test_temp_dir)
     return c
コード例 #36
0
ファイル: testcheck.py プロジェクト: gnprice/mypy
 def cases(self) -> List[DataDrivenTestCase]:
     c = []  # type: List[DataDrivenTestCase]
     for f in files:
         c += parse_test_cases(os.path.join(test_data_prefix, f),
                               self.run_test, test_temp_dir, True)
     return c
コード例 #37
0
ファイル: teststubgen.py プロジェクト: rockneurotiko/mypy
 def cases(self):
     c = []
     for path in self.test_data_files:
         c += parse_test_cases(os.path.join(config.test_data_prefix, path), test_stubgen)
     return c
コード例 #38
0
ファイル: testparse.py プロジェクト: zanellia/mypy
 def cases(cls) -> List[DataDrivenTestCase]:
     # Test case descriptions are in an external file.
     return parse_test_cases(
         os.path.join(config.test_data_prefix, 'parse-errors.test'),
         test_parse_error)
コード例 #39
0
 def cases(self):
     c = []
     for f in python_eval_files:
         c += parse_test_cases(os.path.join(test_data_prefix, f), test_python_evaluation, test_temp_dir, True)
     return c
コード例 #40
0
 def cases(self):
     c = []
     for f in files:
         c += parse_test_cases(os.path.join(test_data_prefix, f),
                               self.run_test, test_temp_dir, True)
     return c
コード例 #41
0
ファイル: teststubgen.py プロジェクト: vdt/mypy
 def cases(self) -> List[DataDrivenTestCase]:
     c = []  # type: List[DataDrivenTestCase]
     for path in self.test_data_files:
         c += parse_test_cases(os.path.join(config.test_data_prefix, path),
                               test_stubgen)
     return c
コード例 #42
0
ファイル: testtypegen.py プロジェクト: JamesGuthrie/mypy
 def cases(self):
     c = []
     for f in self.files:
         c += parse_test_cases(os.path.join(config.test_data_prefix, f),
                               self.run_test, config.test_temp_dir)
     return c
コード例 #43
0
ファイル: testcgen.py プロジェクト: FlorianLudwig/mypy
 def cases(self):
     c = []
     for f in self.files:
         c += parse_test_cases(os.path.join(test_data_prefix, f),
                               test_cgen_compile, test_temp_dir, True)
     return c