Пример #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
 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
 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
 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
 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
 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
 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
 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
 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
 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
 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
 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
 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