aboutsummaryrefslogtreecommitdiffstats
path: root/python/tidy/servo_tidy_tests/test_tidy.py
diff options
context:
space:
mode:
authorCullen Rhodes <rhodes.cullen@gmail.com>2016-05-22 16:32:18 +0100
committerCullen Rhodes <rhodes.cullen@gmail.com>2016-05-27 10:18:44 +0100
commit40acd24e8fef2a3c46ecdb21b4be1363d48e8ec4 (patch)
treea7786b1554ccc97240fdde367fe0ed5455c4c59f /python/tidy/servo_tidy_tests/test_tidy.py
parent4dcb05ca4f521b2c5eb12000678be035465e092b (diff)
downloadservo-40acd24e8fef2a3c46ecdb21b4be1363d48e8ec4.tar.gz
servo-40acd24e8fef2a3c46ecdb21b4be1363d48e8ec4.zip
Report use statements that use {} with only one entry
Diffstat (limited to 'python/tidy/servo_tidy_tests/test_tidy.py')
-rw-r--r--python/tidy/servo_tidy_tests/test_tidy.py1
1 files changed, 1 insertions, 0 deletions
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])