diff options
author | Pyfisch <pyfisch@gmail.com> | 2018-11-06 22:26:18 +0100 |
---|---|---|
committer | Pyfisch <pyfisch@gmail.com> | 2018-11-07 09:37:55 +0100 |
commit | 1855c88d6106c73febec1f5f29e246a75ff2f849 (patch) | |
tree | beac5d52d100d16e7c3612b991fc74c007d60bcb /python/tidy/servo_tidy_tests | |
parent | 9e92eb205a2a12fe0be883e42cb7f82deebc9031 (diff) | |
download | servo-1855c88d6106c73febec1f5f29e246a75ff2f849.tar.gz servo-1855c88d6106c73febec1f5f29e246a75ff2f849.zip |
Fix test-tidy self test
Install rustup on first Travis job.
Only use rustfmt::skip as an outer attribute.
Diffstat (limited to 'python/tidy/servo_tidy_tests')
-rw-r--r-- | python/tidy/servo_tidy_tests/test_tidy.py | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/python/tidy/servo_tidy_tests/test_tidy.py b/python/tidy/servo_tidy_tests/test_tidy.py index dbc3f9d4f8b..c1dec57ab89 100644 --- a/python/tidy/servo_tidy_tests/test_tidy.py +++ b/python/tidy/servo_tidy_tests/test_tidy.py @@ -105,14 +105,8 @@ class CheckTidiness(unittest.TestCase): def test_rust(self): errors = tidy.collect_errors_for_files(iterFile('rust_tidy.rs'), [], [tidy.check_rust], print_text=False) self.assertEqual('extra space after use', errors.next()[2]) - self.assertEqual('extra space after {', errors.next()[2]) - self.assertEqual('extra space before }', errors.next()[2]) - self.assertEqual('use statement spans multiple lines', errors.next()[2]) self.assertEqual('missing space before }', errors.next()[2]) - self.assertTrue('use statement is not in alphabetical order' in errors.next()[2]) self.assertEqual('use statement contains braces for single import', errors.next()[2]) - self.assertTrue('use statement is not in alphabetical order' in errors.next()[2]) - self.assertEqual('encountered whitespace following a use statement', errors.next()[2]) self.assertTrue('mod declaration is not in alphabetical order' in errors.next()[2]) self.assertEqual('mod declaration spans multiple lines', errors.next()[2]) self.assertTrue('extern crate declaration is not in alphabetical order' in errors.next()[2]) |