Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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)
Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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)
Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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