예제 #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
 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
 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
 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
 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
 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
 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
 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
 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
 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
 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
 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
 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
 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
 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
 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
 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
 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
 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