From 40acd24e8fef2a3c46ecdb21b4be1363d48e8ec4 Mon Sep 17 00:00:00 2001 From: Cullen Rhodes Date: Sun, 22 May 2016 16:32:18 +0100 Subject: Report use statements that use {} with only one entry --- python/tidy/servo_tidy_tests/test_tidy.py | 1 + 1 file changed, 1 insertion(+) (limited to 'python/tidy/servo_tidy_tests/test_tidy.py') diff --git a/python/tidy/servo_tidy_tests/test_tidy.py b/python/tidy/servo_tidy_tests/test_tidy.py index 55dbb4ce21a..47c3d7780a3 100644 --- a/python/tidy/servo_tidy_tests/test_tidy.py +++ b/python/tidy/servo_tidy_tests/test_tidy.py @@ -53,6 +53,7 @@ class CheckTidiness(unittest.TestCase): 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.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]) -- cgit v1.2.3