diff options
author | Martin Robinson <mrobinson@igalia.com> | 2023-07-18 14:36:03 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-18 12:36:03 +0000 |
commit | b91e3654e48ff92e013d53f892aa31ff09baee68 (patch) | |
tree | 37cc8345f7789400078359aded87a5b64ad5dff7 /python/tidy/test.py | |
parent | da5b861b3c7357948bba1b6417525322d46684cb (diff) | |
download | servo-b91e3654e48ff92e013d53f892aa31ff09baee68.tar.gz servo-b91e3654e48ff92e013d53f892aa31ff09baee68.zip |
Remove the YAML tidy code (#30004)
This code was used to test buildbox_steps.yml, but Servo no longer uses
buildbot, so this code is essentially unused. In addition, YAML +
Cython 3 is causing issues on the CI.
Fixes #30003
Signed-off-by: Martin Robinson <mrobinson@igalia.com>
Diffstat (limited to 'python/tidy/test.py')
-rw-r--r-- | python/tidy/test.py | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/python/tidy/test.py b/python/tidy/test.py index e28549f2c3c..5b6cff89988 100644 --- a/python/tidy/test.py +++ b/python/tidy/test.py @@ -180,21 +180,6 @@ class CheckTidiness(unittest.TestCase): self.assertEqual('Unordered key (found b before a)', next(errors)[2]) self.assertNoMoreErrors(errors) - def test_yaml_with_duplicate_key(self): - errors = tidy.collect_errors_for_files(iterFile('duplicate_keys_buildbot_steps.yml'), [tidy.check_yaml], [], print_text=False) - self.assertEqual('Duplicated Key (duplicate_yaml_key)', next(errors)[2]) - self.assertNoMoreErrors(errors) - - def test_non_list_mapped_buildbot_steps(self): - errors = tidy.collect_errors_for_files(iterFile('non_list_mapping_buildbot_steps.yml'), [tidy.check_yaml], [], print_text=False) - self.assertEqual("expected a list for dictionary value @ data['non-list-key']", next(errors)[2]) - self.assertNoMoreErrors(errors) - - def test_non_string_list_mapping_buildbot_steps(self): - errors = tidy.collect_errors_for_files(iterFile('non_string_list_buildbot_steps.yml'), [tidy.check_yaml], [], print_text=False) - self.assertEqual("expected str @ data['mapping_key'][0]", next(errors)[2]) - self.assertNoMoreErrors(errors) - def test_lock(self): errors = tidy.collect_errors_for_files(iterFile('duplicated_package.lock'), [tidy.check_lock], [], print_text=False) msg = """duplicate versions for package `test` |